Giter Site home page Giter Site logo

instagram's Introduction

Instagram

Contains crawler, downloader, storing in database, statistics and uploader/automation

1. Crawler: Start with the crawler which scrapes each instagram page contained in the txt file for:

Will be a module with different functions for each command:

  • Get the amount of posts
  • Get the number of followers
  • Get the amount followed
  • Get the amount of likes in the last i photos/videos starting with the latest where i is a input integer
  • Get the amount of comments in the last j photos/videos starting with the latest where j is a input integer
  • Get the text of all comments in the last k photos/videos starting with the latest where k is a input integer
  • Get the description text of each l images checked where l is a input integer
  • Get the href link to the m photos/videos in question, where m is a input integer

Where i, j, k, l, m were used as placeholders to show that they can be independent.

2. Downloader: downloads all of the href links specified

3. Storing in a database: after each different scrape function may have run, choose if need to update or insert into sql database.

4. Statistics: Simple mean value of the amount of comments/amount of posts etc to better provide a good scoring system.

5. Uploader/Automation: Take the new images/videos and upload the images by the specified time slots per day.

Example use:

Grab kittenattackz from accounts.txt and proceed to check if kittenattackz exists in the database. If not, then proceeds to check the amount of posts, the amount of followers, the amount of likes in all photos/videos, the amount of comments in all photos/videos, inputs each of these in the table created for 'kittenattackz' in the database.

If 'kittenattackz' exists already in the database then check if the amount of posts have increased and then check the amount of images/videos that the amount of posts increased by for The amount of likes, The amount of comments, The text of all comments, The description text of all images/videos and The href links and also the amount of followers.

Score the images/videos according to the ratio between (likes + comments*X)/followers, where X is some function derived from the ratio of likes and comments (or the importance of comments for the top ratio photos/videos).

Download the top N images/videos specified. Upload the

Store all relevant new data in the database.

There should be no need for a user to check the database manually or manually enter the data.

This makes it so that there's no need to check further than if the amount of posts increased for a user or not.

instagram's People

Contributors

jokezor avatar

Watchers

 avatar  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.