I have decided to deprecate this repository in favour of promo-scraper-alt
, which you can find here.
Unlike promo-scraper
, promo-scraper-alt
will take screenshots of promoted tweets directly from your home timeline, rather than visiting the promoted tweet URL in separate process. I wanted to do this incase promo-scraper
's screenshot method was accidentally influencing Twitter's ad delivery algorithm.
A promoted tweet scraper cobbled together in response to this tweet by Adam Harvey.
In its current form, promo-scraper
will login to your Twitter account, scroll through 5 pages of tweets, and then scrape any promoted tweets that appear. Each tweet is saved into a text file, then an additional screenshot is taken for posterity. This data will appear in the same directory as promo-scraper
.
promo-scraper
requires Node.js, and was built and tested using Node v5.4.0, on Mac OS X 10.11.5.
promo-scraper
utilises Nightmare.js, jsdom, and dateformat.
$ git clone https://github.com/louiscenter/promo-scraper.git
$ cd promo-scraper
$ npm install
$ npm start <TWITTER_USERNAME> <TWITTER_PASSWORD>
- Add option to show browser window during scan
- Use selector detection rather than timeouts for login/scrolling
- Improve error handling