Giter Site home page Giter Site logo

drkostas / insta-likes-predict Goto Github PK

View Code? Open in Web Editor NEW
56.0 6.0 5.0 47 KB

First attempt on predicting the likes a photo will get on Instagram.

License: GNU General Public License v3.0

Python 100.00%
python scraper instagram keras-tensorflow cnn

insta-likes-predict's Introduction

Instagram Predict: First attempt

First attempt on predicting the likes a photo will get on Instagram.

Given a list of Instagram users, it downloads their latest photos with their corresponding likes and the number of their followers. Then, it creates a CNN model with Keras on Tensorflow that predicts the number of likes an image will get.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Python 3.x

Installing

Installing the requirements

pip install -r requirements.txt

Running

  1. In the usernames.txt write the usernames of the Instagram users you want to scrape (One per line)
  2. Run python3 scraper.py
  3. The data are now saved under /data
  4. Run python3 Analyze/analyzer.py to download the images under data/download and a create a CNN model that predicts the number of likes based on the image and the number of followers.
  5. The model is saved under /models
  6. Place the images whose likes you want to predict under Analyze/to_predict
  7. Go to predictor.py and add the number of followers of each image's user (line 12)
  8. Run python3 predictor.py

License

This project is licensed under the GNU General Public License v3.0 License

insta-likes-predict's People

Contributors

dependabot[bot] avatar drkostas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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