A REST API build with Django 1.9.11 + Django REST Framework (Python 3.5.2). This API provide a set of JSON web services to scrap then store/fetch data from main social networks.
-
User Profile [Done]
- Scrap Profile public data whenever they're available using just the Twitter Username : Full name, Profile Picture URL, Bio, Location, Joining Date, Personal URL, Number of Tweets, Number of Followers, Number of Following', Number of Likes)
URL: http://localhost:8000/twusers/Username [Method POST] - Save User in the SQLite database
- Retrieve User by Username
URL: http://localhost:8000/twusers/Username [Method GET] - List all scrapped twitter users
URL: http://localhost:8000/twusers/ [Method GET]
- Scrap Profile public data whenever they're available using just the Twitter Username : Full name, Profile Picture URL, Bio, Location, Joining Date, Personal URL, Number of Tweets, Number of Followers, Number of Following', Number of Likes)
-
User Tweets [Done]
- Download the latest 3420 tweets of a given Twitter user identified by his username (handle). Twitter only allows access to a users most recent 3240 tweets through its API. I used Tweepy which is Python wrapper for Twitter API.
- Require that the user profile is scrapped and saved in the DB first, deletes the corresponding tweets in the DB if they exist, scrap the latest ones and save in the DB.
URL: http://localhost:8000/twusers/Username/tweets [Method POST] - Retrieve the user tweets from the DB if they exist
URL: http://localhost:8000/twusers/Username/tweets [Method GET]
- Download the latest 3420 tweets of a given Twitter user identified by his username (handle). Twitter only allows access to a users most recent 3240 tweets through its API. I used Tweepy which is Python wrapper for Twitter API.