crowdcafe-datasources's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.