Giter Club home page Giter Club logo

crowdcafe-datasources's People

Contributors

mattia-rigotti avatar pavelk2 avatar

Watchers

 avatar  avatar  avatar

crowdcafe-datasources's Issues

Instagram API

I would like you to create a class for collecting instagram photos by username or by hashtag.

The idea is next. Let's say - you create a class InstagramAPI. then with this class you call a method:
.getPhotos(keyword, amount, last_photoid, new = true)

So if the keyword is "@pavelk2" - then you need to find the last photos of a user with a name "pavelk2". If your keyword is "#unitn" - then you need to retrieve the last photos with a hashtag "unitn". The amount - is clear - amount of photos to retrieve. The last_photoid - (if is defined) - tells from which photo to start retrieving. New - can be true or false. If it is true - it will retrieve the newest photos starting from last_photoid (or just simply newest - if this value is not defined). If new is false, then it will show the older photos made before last_photoid.

You do not need to write everything from scratch - there are plenty of existing python libraries for working with instagram - you can easily use and just wrap them in something usable for solving our task.

Please create 2 files - one with the class and another one - which imports this class, defines all the necessary settings data (such as client_id for the instagram application) and runs the getPhotos method, which returns a list of photos. Then doing
for photo in photos:
print photo
you show the data about each photo.

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.