Jefferson-Henrique / Jefferson-Henrique/GetOldTweets-python

Getting urlib2 not defined error

Open
#83 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.3k
Forks
790
PR merge metrics
No merged PRs in 30d

Description

Hi I'm new to programming. I'm using python 2.7. I have downloaded the repository, unzipped it and had run the command pip install -r requirements.txt too to install the requirements. But i'm getting name 'urlib2' is not defined error when i run Main.py. Also, when i try to run Exporter.py, i'm getting a syntax error. Please find the error details below:

MacBook-Pro:GetOldTweets-python-master Pranay$ python Main.py
Traceback (most recent call last):
File "Main.py", line 36, in
main()
File "Main.py", line 19, in main
tweet = got.manager.TweetManager.getTweets(tweetCriteria)[0]
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GetOldTweets-python-master/got3/manager/TweetManager.py", line 21, in getTweets
json = TweetManager.getJsonReponse(tweetCriteria, refreshCursor, cookieJar, proxy)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GetOldTweets-python-master/got3/manager/TweetManager.py", line 123, in getJsonReponse
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookieJar))
NameError: name 'urllib2' is not defined

cBook-Pro:GetOldTweets-python-master Pranay$ python Exporter.py -h
File "Exporter.py", line 14
print f.read()
^
SyntaxError: invalid syntax

Can someone please help on this issue. Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.