Python vraagje: proxy gebruiken

 

Gezocht: Onderstaand gedeelte moet gebruik gaan maken van een proxy (IP adres en Port) maar wat ik ook probeer, ik krijg alleen maar een negatieve response terug. Dus ergens gaat er wat mis als ik er een ProxyHandler erbij wil voegen. Iemand een idee?

self.req = None
self.req = urllib2.Request(url)
self.req.add_header(“User-agent”, programma.USERAGENT)
self.connect()

elif autosub.Helpers.checkAPICalls(use=True):
self.req = None
self.req = urllib2.Request(url)
self.req.add_header(“User-agent”, programma.USERAGENT)
self.connect()

else:
log.error(“API: out of api calls”)
 
def connect(self):
import socket
socket.setdefaulttimeout(programma.TIMEOUT)
self.resp = urllib2.urlopen(self.req)
time.sleep(5) #Max 2 connections each second

Psst: We are still blogging !!

Wow .. just looked at Archive.org they archived AroundMyRoom since 2001 and WAUW .. every single entry I still have. Blogging more than 11 years and still keep blogging about things I enjoy.

Yesterday I installed Windows 8. And I am using it now .. Started in the IT when MS-DOS was exchanged for Windows 3.11 and where Windows 95 was a huge turn in how a PC was being used. Now with Windows 8 Microsoft tries it again. A totally different approach than before. I have to get used to that .. Change .. Change

I wonder how long I will keep on blogging. After 11 years the updates are not that much anymore, but hey, we do have Facebook now, we do have Twitter (did you know I do archive all my tweets myself and is part of this weblog !) and many other social things like Foursquare ..

Keep tracking this website, nice things are going to happen. Especially as I am watching Shark Tank now ;-)

Personal Achievements: Create a product what can win prices

Proud, proud to see that the product I have developed, (from idea to end (the whole product development )) finally wins a price in the category: Best Professional Storage Product. The Freecom SilverStore 2-Drive NAS wins over Promise, G-Tech, Synology and IOmega.. the MAC WORLD 2012 awards ..

Bummer …. and they had to let me go due to an internal reorganisation. I am Seeking a new job …. with this kind of achievement somebody must notice and see the potential not?

Okay what was my part in all of this:

Creating

Geboren: Tim Matthijs

19 maart 2012 om 06.54 met een gewicht van 2850 gram en 46cm lengte

Tim Matthijs Slagers (Roepnaam Tim)
Natuurlijk heeft Tim ook een eigen weblog en site: http://www.timslagers.nl