{"info":{"_postman_id":"4a24de6b-d8c7-2331-a015-68b8a51e89cb","name":"TweetFilter","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>This API can live stream #TwitterFeed and filter the generated tweets for any Data Analysis purpose.</p>\n<h1 id=\"overview\">Overview</h1>\n<ul>\n<li><a href=\"https://twitter.com/\">Sign Up</a> for a Twitter Account.</li>\n<li>Create a new Consumer Key, Consumer Secret, Access Key and Access Secret in the <a href=\"https://developer.twitter.com/\">Developers</a> section.</li>\n<li>An application written in Python 2.7</li>\n<li>Uses Flask which could be installed by running the requirements command(follow the installation steps).</li>\n<li>Set up MongoDB by following the documentation in the respective websites<ul>\n<li><a href=\"https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/\">Mac OS</a></li>\n<li><a href=\"https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/\">Ubuntu</a></li>\n</ul>\n</li>\n</ul>\n<h1 id=\"authentication\">Authentication</h1>\n<ul>\n<li>Git Clone or Download the <a href=\"https://github.com/krishnadwypayan/HackerCamp-Summer-2018-Submission---API-\">repository</a></li>\n<li>Open Terminal inside the TweetFilter folder and run the following command to install the requirements for running the service:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">pip install -r requirements.txt\n</code></pre>\n<ul>\n<li>Run the following command in the terminal to set up the mongo server:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">mongod\n</code></pre>\n<ul>\n<li>Open another terminal inside the TweetFilter directory and run the following command to start the service:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">python main.py\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"}],"owner":"3710139","collectionId":"4a24de6b-d8c7-2331-a015-68b8a51e89cb","publishedId":"RVfwir4S","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-02-16T14:12:45.000Z"},"item":[{"name":"http://127.0.0.1:5000/tweets/get?find=cricket","id":"4e9e07c7-f565-9027-6a2b-06a1ad01f75c","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:5000/tweets/get?find=cricket","description":"<p>Enables a live feed of the twitter data for the given search word in 'find'.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["tweets","get"],"host":["127","0","0","1"],"query":[{"key":"find","value":"cricket"}],"variable":[]}},"response":[{"id":"edd965ba-df0f-78a8-5101-292535ab11f3","name":"Default","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:5000/tweets/get?find=cricket","protocol":"http","host":["127","0","0","1"],"port":"5000","path":["tweets","get"],"query":[{"key":"find","value":"cricket"}]}},"code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":""}],"_postman_id":"4e9e07c7-f565-9027-6a2b-06a1ad01f75c"},{"name":"http://127.0.0.1:5000/tweets/gettexts?page=2","id":"491578b6-3836-3ec6-dcc1-4b23823843f0","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:5000/tweets/gettexts?page=2","description":"<p>Returns the relevent tweets of the searched word containg the text in the tweet, the time the tweet was sent and the creator of the tweet. The output returned will be from the page requested.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["tweets","gettexts"],"host":["127","0","0","1"],"query":[{"key":"page","value":"2"}],"variable":[]}},"response":[{"id":"1d6cfa47-c0db-967f-5497-25b4697b622d","name":"Default","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:5000/tweets/gettexts?page=2","protocol":"http","host":["127","0","0","1"],"port":"5000","path":["tweets","gettexts"],"query":[{"key":"page","value":"2"}]}},"code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":""}],"_postman_id":"491578b6-3836-3ec6-dcc1-4b23823843f0"},{"name":"http://127.0.0.1:5000/tweets/text?find=car&page=1","id":"14943fa9-dadf-d1cd-753a-888739acbf8c","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:5000/tweets/text?find=car&page=1","description":"<p>Searches for the keyword in tweet text/user name and returns the relevant tweets. Paginated.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["tweets","text"],"host":["127","0","0","1"],"query":[{"key":"find","value":"car"},{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"34652887-95cb-39c4-4c34-998dd173bec3","name":"Default","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:5000/tweets/text?find=car&page=1","protocol":"http","host":["127","0","0","1"],"port":"5000","path":["tweets","text"],"query":[{"key":"find","value":"car"},{"key":"page","value":"1"}]}},"code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":""}],"_postman_id":"14943fa9-dadf-d1cd-753a-888739acbf8c"},{"name":"http://127.0.0.1:5000/tweets/date?sort=ascending&page=1","id":"9f43b963-76af-a2e0-bda0-e96c8efb52d2","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:5000/tweets/date?sort=ascending&page=1","description":"<p>Sort data based on date/time. Requires to specify the order of the data to be sorted by in (ascending/descending).</p>\n","urlObject":{"protocol":"http","port":"5000","path":["tweets","date"],"host":["127","0","0","1"],"query":[{"key":"sort","value":"ascending"},{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"3c66ecb7-a833-ef81-0e53-12b94cb927f7","name":"Default","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:5000/tweets/date?sort=ascending&page=1","protocol":"http","host":["127","0","0","1"],"port":"5000","path":["tweets","date"],"query":[{"key":"sort","value":"ascending"},{"key":"page","value":"1"}]}},"code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":""}],"_postman_id":"9f43b963-76af-a2e0-bda0-e96c8efb52d2"},{"name":"http://127.0.0.1:5000/tweets/filter?find=user_followers_count>100&page=1","id":"50de4be3-8568-2c90-f71f-d9b5b4c67dc1","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:5000/tweets/filter?find=user_followers_count>100=&page=1","description":"<p>Filtering on a specific metadata of the tweet. Requires the expression condition to be given as in the url. The metadata content name should be specific to the tweepy return values of a status.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["tweets","filter"],"host":["127","0","0","1"],"query":[{"key":"find","value":"user_followers_count>100="},{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"284f4476-1a5a-531d-a614-2b27427aa29a","name":"Default","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:5000/tweets/filter?user_followers_count>100&page=1","protocol":"http","host":["127","0","0","1"],"port":"5000","path":["tweets","filter"],"query":[{"key":"user_followers_count>100","value":null},{"key":"page","value":"1"}]}},"code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":""}],"_postman_id":"50de4be3-8568-2c90-f71f-d9b5b4c67dc1"},{"name":"http://127.0.0.1:5000/tweets/search?find=hello&page=1","id":"fab8482c-ad7c-73c3-395d-24182fe99824","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:5000/tweets/search?find=hello&page=1","description":"<p>Returns the tweets containing the search word anywhere in the string</p>\n","urlObject":{"protocol":"http","port":"5000","path":["tweets","search"],"host":["127","0","0","1"],"query":[{"key":"find","value":"hello"},{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"a577b34b-4796-2600-acdb-6c6d133ac54b","name":"Default","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:5000/tweets/search?find=hello&page=1","protocol":"http","host":["127","0","0","1"],"port":"5000","path":["tweets","search"],"query":[{"key":"find","value":"hello"},{"key":"page","value":"1"}]}},"code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":""}],"_postman_id":"fab8482c-ad7c-73c3-395d-24182fe99824"},{"name":"http://127.0.0.1:5000/tweets/urls?page=1","id":"4ab03fbf-f1d5-90c4-6248-77b83816595a","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:5000/tweets/urls?page=1","description":"<p>Returns only those tweets that contain url mentions.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["tweets","urls"],"host":["127","0","0","1"],"query":[{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"888d700d-2932-2d62-574f-77c9e57a7987","name":"Default","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:5000/tweets/urls?page=1","protocol":"http","host":["127","0","0","1"],"port":"5000","path":["tweets","urls"],"query":[{"key":"page","value":"1"}]}},"code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":""}],"_postman_id":"4ab03fbf-f1d5-90c4-6248-77b83816595a"},{"name":"http://127.0.0.1:5000/tweets/nearby?find=Delhi&page=1","id":"dc28d0fa-975a-43ac-3097-8c3bf5191959","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:5000/tweets/nearby?find=Delhi&page=1","description":"<p>Returns all the tweets in a 500 mtrs radius of the given search location, from the database of tweets found on the keyword searched for. Takes some time to load all the locations.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["tweets","nearby"],"host":["127","0","0","1"],"query":[{"key":"find","value":"Delhi"},{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"d1ccd35e-2372-b112-c472-e418547224dd","name":"Default","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:5000/tweets/nearby?find=Delhi&page=1","protocol":"http","host":["127","0","0","1"],"port":"5000","path":["tweets","nearby"],"query":[{"key":"find","value":"Delhi"},{"key":"page","value":"1"}]}},"code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":"0","body":""}],"_postman_id":"dc28d0fa-975a-43ac-3097-8c3bf5191959"}]}