This file contains 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 tweepy import API, OAuthHandler, TweepError | |
from src.keys import CONSUMER_KEY, CONSUMER_SECRET | |
def auth(): | |
''' Connect to Twitter ''' | |
auth = OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) | |
try: | |
redirect_url = auth.get_authorization_url() |
This file contains 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
#!/usr/bin/env python | |
""" | |
Download all the pdfs linked on a given webpage | |
Usage - | |
python grab_pdfs.py url <path/to/directory> | |
url is required | |
path is optional. Path needs to be absolute |