Giter Site home page Giter Site logo

promo-scraper-alt's Introduction

promo-scraper-alt

An alternative version to promo-scraper, which is located here.

The original promo-scraper was hastily cobbled together using nightmare, but I wanted to build promo-scraper-alt from scratch using Electron (of which nightmare is built on top of).

promo-scraper-alt 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-alt.

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.

Screenshot of promo-scraper-alt

Why?

promo-scraper and promo-scraper-alt were built in response to this this tweet by Adam Harvey.

Notes

promo-scraper-alt requires Node.js, and was built and tested using Node v5.4.0, on Mac OS X 10.11.6.

promo-scraper-alt utilises electron, jsdom, map-limit, and date-format.

Usage

$ git clone https://github.com/louiscenter/promo-scraper-alt.git
$ cd promo-scraper-alt
$ npm install
$ npm start <TWITTER_USERNAME> <TWITTER_PASSWORD>

Todo

  • Use selector detection rather than timeouts for login/scrolling
  • Improve error handling

License

MIT

promo-scraper-alt's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.