twitter-image-link-scraper

A nodejs package to scrape tweet images data from twitter automatically.

Usage no npm install needed!

<script type="module">
  import twitterImageLinkScraper from 'https://cdn.skypack.dev/twitter-image-link-scraper';
</script>

README

twitter-image-link-scraper is a nodejs package to scrape image links on twitter feed using browser automation. It currently runs only on windows.

Installation

npm install twitter-image-link-scraper

Example

In this example we first import package, then we login with cookies and scrape links.

var twitter=require("twitter-image-link-scraper");

function get_data(response){
    var data=response["body"]
    console.log("data",data)
    //data=[{"Imagelink": "Imagelink"},{},...]
}
function get_links(){
    twitter.save_image_links(get_data)
}
twitter.open("https://twitter.com",get_links)

DataKund

datakund is needed for browser automation. As soon as this package is imported in code, automated browser will open up.

Import

var twitter=require("twitter-image-link-scraper");

Login with credentials

twitter.login(username,password)

Login with cookies

twitter.login_cookie(list_of_cookies)

Get Image Links

twitter.save_image_links()

Cookies

To login with cookies Edit this Cookie Extension can be added to browser

Contact Us