Giter Club home page Giter Club logo

grabagram's Introduction

grabagram

Non-API Image and metadata archiving tools for well known user generated content site. Images are selected using a tag, but the code can be easily adapted to do profiles or locations.

requirements

Tested with

  • selenium 3.4
  • geckodriver 0.16
  • firefox 53.0

instructions

Edit tag variable on line 36 to target a tag. Changing base URL on line 39 will allow you to archive locations or profiles as the page layout is the same as tags. Line 67 controls the number of pages that will scrolled down before harvesting begins, 69 and 79 control how fast the scrape will take place.

Images will be stored in a folder in the CWD that will be created with the tag name. A CSV file will be created in the same directory with some of the meta data. NB This code relies on CSS selectors so will get broken by some future update of the target site. To run the code just type 'python grabagram.py' from the terminal.

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.