Commit Graph

13 Commits

Author SHA1 Message Date
Parker Smith d878779d50 Modified http util to support additional headers
Inverted some header logic

Removed user_agent and referer from http, in favor of headers dict

http: formatting

http: Fixed missing part in conditional
2014-01-20 09:15:29 -05:00
Ryan Hitchman cb8c437772 flake8 + autopep8 (whitespace fixes) 2014-01-14 13:12:37 -08:00
Ben a1c44336dd New, simplified twitter plugin with support for API 1.1. 2013-06-26 11:35:39 -07:00
Lasse Vang Gravesen 68e5535ca4 Added referer field to http.py, as to make it possible to use a referer. I
don't know if this was possible before, and if it was it should be removed
and the appropriate changes should be made without the http.py change.

Stock plugin output was changed so the percent change has an actual
percentage sign after it.

UrbanDictionary plugin was changed to use a referer because it didn't work
without it.
2012-06-03 01:08:30 +02:00
Ryan Hitchman ce67812827 google: unescape titles. drama: set api endpoints to new domain. 2011-05-30 05:18:01 -06:00
Ryan Hitchman b82372a76c make default user-agent include git revision 2011-03-29 08:48:44 -05:00
Ryan Hitchman bc05053d8a docstring snopes, don't respond to "<botnick> <command>" (can still do "<botnick>: <command>", PEP8 2010-11-11 23:21:27 -06:00
Rob Dennis 8372502ea5 fix for mutable default argument in utility function 2010-09-06 11:39:13 +08:00
Ryan Hitchman f3f4dac7e9 make http able to handle cookies, somethingawful.py: give thread titles for SA forums links 2010-08-25 15:39:45 -05:00
Ryan Hitchman b5be0217a4 make .dict handle unicode properly 2010-07-24 17:38:28 -06:00
Ryan Hitchman 1005537e63 .dict/.define (courtesy GhettoWizard), move more stuff into the http library 2010-04-25 15:39:31 -06:00
Ryan Hitchman f61895fdc3 pep8 2010-04-22 21:50:56 -06:00
Ryan Hitchman e55774b770 refactor http (and html, xml, json) handling into util/http.py (not done for dotnetpad), fix mtg, remove dict & goonsay 2010-04-22 21:47:41 -06:00