This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import codecs | |
| import sys | |
| from TwitterAPI import TwitterAPI, TwitterOAuth | |
| # SAVE YOUR APPLICATION CREDENTIALS IN TwitterAPI/credentials.txt. | |
| o = TwitterOAuth.read_file() | |
| api = TwitterAPI(o.consumer_key, o.consumer_secret, o.access_token_key, o.access_token_secret) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import codecs | |
| import sys | |
| from TwitterAPI import TwitterAPI, TwitterOAuth, TwitterRestPager | |
| # SAVE YOUR APPLICATION CREDENTIALS IN TwitterAPI/credentials.txt. | |
| o = TwitterOAuth.read_file() | |
| api = TwitterAPI(o.consumer_key, o.consumer_secret, o.access_token_key, o.access_token_secret) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Net; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| namespace Twitter | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Net; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| namespace Twitter | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| from datetime import datetime | |
| import os | |
| import time | |
| import urllib | |
| SEARCH_OLD = False # True only returns one page | |
| LAT = 40.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import requests | |
| from requests_oauthlib import OAuth1 | |
| consumer_key = ... | |
| consumer_secret = ... | |
| access_token_key = ... | |
| access_token_secret = ... | |
| url = 'https://api.twitter.com/1.1/search/tweets.json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| from datetime import datetime | |
| import os | |
| import time | |
| import urllib | |
| SEARCH_OLD = True | |
| USER = 'boxnumber03' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from TwitterAPI import TwitterAPI, TwitterOAuth, TwitterRestPager | |
| import threading | |
| # SAVE YOUR APPLICATION CREDENTIALS IN TwitterAPI/credentials.txt. | |
| o = TwitterOAuth.read_file() | |
| api = TwitterAPI(o.consumer_key, o.consumer_secret, o.access_token_key, o.access_token_secret) | |
| class DeleteThread (threading.Thread): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import json | |
| import requests | |
| from requests.auth import HTTPBasicAuth | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('user') | |
| parser.add_argument('password') | |
| parser.add_argument('description') | |
| parser.add_argument('filename') |
OlderNewer