Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

create.py #1

Open
somyamohanty opened this issue Nov 12, 2012 · 3 comments
Open

create.py #1

somyamohanty opened this issue Nov 12, 2012 · 3 comments
Assignees

Comments

@somyamohanty
Copy link

Http error: 400 bad request.

Here is the sample output

CREATING JOB: (Social Data Phenoms)
PARAMETERS:
{"publisher": "twitter", "title": "BieberJob1", "rules": [{"tag": "bestRuleEver", "value": "bieber"}], "streamType": "track", "dataFormat": "activity-streams", "fromDate": "201201010000", "toDate": "201201010001", "serviceUsername": "[email protected]"}
RESPONSE:
Check parameters, URL and authentication. (HTTP Error 400: Bad Request)
HTTP Error 400: Bad Request

Check parameters, URL and authentication. (HTTP Error 400: Bad Request)
HTTP Error 400: Bad Request

Traceback (most recent call last):
File "./create_job.py", line 26, in
CreatJob()()
File "./create_job.py", line 22, in call
print str(self.gnipHistorical.createJob())
File "/Users/som/Downloads/Gnip-Python-Historical-Utilities-master/src/gnip_historical.py", line 327, in repr
res = ''(8+len(self.title)) + '\n'
TypeError: object of type 'NoneType' has no len()

@ghost ghost assigned DrSkippy Nov 12, 2012
@DrSkippy
Copy link
Owner

One change you need and one thing to check... Your serviceUserName should be your twitter id rather than your email address. And you should check to make sure the configured url in the ".gnip" file created by the setup routine matches the one you were given when you setup your account with Gnip.

@somyamohanty
Copy link
Author

Thank you had to change the username to twitter handle and it solved the problem.

@DrSkippy
Copy link
Owner

Glad to help. Good luck digging into historical twitter data--very addicting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants