iamchippa / dumpmon-scraper

Simple script to scrape the @Dumpmon twitter account and look for keywords inside the links it posts
3 stars 1 forks source link

module object has no attribute 'Api' #2

Open macubergeek opened 8 years ago

macubergeek commented 8 years ago

./dumpmon-scraper.py 'module' object has no attribute 'Api'

suspect problem is with twitter module

python checkPrereq.py Checking Prequisites ...

NOTE: Your python version is 2.7.10 You python version looks OK for using dumpmon-scraper

Now checking for modules ... Checking for module 'docopt' ... ====> Module docopt found (OK) Checking for module 'twitter' ... ====> Module twitter found (OK) Checking for module 'requests' ... ====> Module requests found (OK) Checking for module 'smtplib' ... ====> Module smtplib found (OK) Checking for module 'email.mime.text' ... ====> Module email.mime.text found (OK) Checking for module 'os' ... ====> Module os found (OK) Checking for module 'ConfigParser' ... ====> Module ConfigParser found (OK) Checking for module 'checkPrereq' ...

====> Module checkPrereq found (OK)

Great! Found all 8 needed modules

Twitter app creds file /Applications/GITLIST-PACKAGES/dumpmon-scraper/.config.cfg found (OK) Permissions on file /Applications/GITLIST-PACKAGES/dumpmon-scraper/.config.cfg look OK

iamchippa commented 8 years ago

Hey! So I'm out of town and not around my machine but I'll check this first thing when I'm back. Thanks for the report. On Thu, Jan 28, 2016 at 9:47 AM macubergeek notifications@github.com wrote:

/dumpmon-scraperpy 'module' object has no attribute 'Api'

suspect problem is with twitter module

python checkPrereqpy Checking Prequisites

NOTE: Your python version is 2710 You python version looks OK for using dumpmon-scraper

Now checking for modules Checking for module 'docopt' ====> Module docopt found (OK) Checking for module 'twitter' ====> Module twitter found (OK) Checking for module 'requests' ====> Module requests found (OK) Checking for module 'smtplib' ====> Module smtplib found (OK) Checking for module 'emailmimetext' ====> Module emailmimetext found (OK) Checking for module 'os' ====> Module os found (OK) Checking for module 'ConfigParser' ====> Module ConfigParser found (OK) Checking for module 'checkPrereq' ====> Module checkPrereq found (OK) Great! Found all 8 needed modules

Twitter app creds file /Applications/GITLIST-PACKAGES/dumpmon-scraper/configcfg found (OK) Permissions on file /Applications/GITLIST-PACKAGES/dumpmon-scraper/configcfg look OK

— Reply to this email directly or view it on GitHub https://github.com/iamchippa/dumpmon-scraper/issues/2.

Sent from my iPhone

iamchippa commented 8 years ago

Sorry for the delay, completely slipped my mind - make sure you're using the python-twitter and not just 'twitter'. It can be found here: https://github.com/bear/python-twitter