View Single Post
  #5   Spotlight this post!  
Unread 27-01-2017, 00:03
Mike Schreiber's Avatar
Mike Schreiber Mike Schreiber is offline
Registered User
FRC #0067 (The HOT Team)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Milford, Michigan
Posts: 487
Mike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond repute
Re: TBA-API to end all TBA-APIs. (Java)

Quote:
Originally Posted by lucas.alvarez96 View Post
Are you using a certain library or just urllib requests? I tried using the Python library recommended on the API docs by TBA but kept on getting a 403 error. Apparently they're blocking calls without a User-Agent.
Yes I am using the requests library, I couldn't get urllib to work either. You can get requests from here.

I recommend the pip install since it's really easy. If you don't have pip the walk through is pretty good.

PM me and I can send you some sample code, I don't want to derail this thread too much.
__________________
Mike Schreiber

Kettering University ('09-'13) University of Michigan ('14-'18?)
FLL ('01-'02), FRC Team 27 ('06-'09), Team 397 ('10), Team 3450/314 ('11), Team 67 ('14-'??)
Reply With Quote