Comments (5)
Hello there
i tried some quick hacking
if i add the following code to http_Request, everything works ok
proxy_support = urllib2.ProxyHandler( {'http': 'http://168.219.61.250:8080/'} /*
my proxy */ )
opener = urllib2.build_opener(proxy_support)
urllib2.install_opener(opener)
so i guess it is not so difficult to add some api for setting the proxy
configuration.
if its ok with you, i can contribute
Original comment by [email protected]
on 20 Jul 2009 at 9:21
from pydelicious.
had a quick look and added reading HTTP_PROXY from os env. if you have any
ideas on
where you want to opener initialized you're welcome to write a patch.
Original comment by [email protected]
on 11 Sep 2009 at 11:17
from pydelicious.
Original comment by [email protected]
on 11 Sep 2009 at 11:18
- Changed state: Started
from pydelicious.
sorry, forgot to close this.
Proxy support is added through the HTTP_PROXY environment variable, set it and
the
urllib2 opener gets an proxy handler added.
Details:
Function pydelicious.build_api_opener accepts extra openers but this argument
is
unused within the package. The function itself just adds a HTTPErrorHandler
instance
and the proxy handler as described.
Use the extra_handlers argument in your own API initializer modelled after
pydelicious.dlcs_api_opener, and then override the DeliciousAPI build_opener
keyword
with the custom version.
Original comment by [email protected]
on 12 Feb 2010 at 7:15
- Changed state: Fixed
from pydelicious.
Sorry for re-opening this issue, but you will also need to set the HTTPS proxy
to make it work behind corporate firewalls/proxies (which is simple):
if HTTP_PROXY:
extra_handlers += ( urllib2.ProxyHandler( {'http': HTTP_PROXY, 'https': HTTP_PROXY} ), )
Original comment by [email protected]
on 29 Jul 2010 at 9:15
from pydelicious.
Related Issues (20)
- pydelicious under google app engine HOT 5
- md5 module is deprecated HOT 1
- ValueError in setup.py when you run python setup.py install HOT 1
- pydelicious svn installs, but can't import pydelicious HOT 1
- Can't use API with yahoo id (user id as an email) ! HOT 4
- Improper error on bad user HOT 9
- timeoutsocket HOT 1
- Should not re-encode unicode data HOT 1
- Proxy settings are only set for http, not https HOT 1
- ability to combine more than one tag in the method get_popular HOT 1
- Mismatch of the return value of pydelicious.get_popular() HOT 3
- I get 404 not found erros. HOT 4
- HTTP Error 404: Not Found HOT 3
- New delicious post-Avos breaks pydelicious? HOT 3
- dlcs_rss_request() does not work
- How do you install it? HOT 1
- Cannot install using Python 3.2 HOT 12
- Only one tag returned by older API methods HOT 1
- ImportError: No module named tools.dlcs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydelicious.