urllib
python threading - a problem
I can\'t figure out the problem in this code. class Threader(threading.Thread): def __init__(self, queue, url, host):[详细]
2023-04-03 12:08 分类:问答How to retrieve a webpage in python, including any images
I\'m trying to retrieve the source of a webpage, including any images. At the moment I have this: import urllib[详细]
2023-04-02 08:44 分类:问答how to convert characters like these,"a³ a¡ a´a§" in unicode, using python?
i\'m making a crawler to get text html inside, i\'m using beautifulsoup. when I open the url using urllib2, this library converts automatically the html that was using portuguese accents like \" ã ó[详细]
2023-04-01 10:32 分类:问答Why I got messy characters while opening url using urllib2?
Here\'s my code, you guys ca开发者_如何学运维n also test it out. I always get messed-up characters instead of page source.[详细]
2023-04-01 01:17 分类:问答unable to Post data to a login form using urllib python v3.2.1
import urllib.parse import urllib.request import time def __init__(self, parent= None): QtGui.QWidget.__init__(self,parent)[详细]
2023-03-31 04:31 分类:问答How does urllib.urlopen() work?
Let\'s consider a big file (~100MB). Let\'s consider that the file is line-based (a text file, with relatively short line ~80 chars).[详细]
2023-03-31 02:21 分类:问答Python 3.[12] urllib
i am working on a little script grabbing some files from a website. First i create a list of potential urls within the website. This worked fine with Python 3.1 but not with Python 3.2. I guess it is[详细]
2023-03-28 14:39 分类:问答Getting unicode from a urllib request
I am running the following code trying to find particular information in some HTML.I am having an encoding/decoding problem, however, that I cannot resolve.[详细]
2023-03-28 00:25 分类:问答Sensing password protected sites when using urllib in python
Hi I have a long series of urls of images (eg. site.com/pic.jpg) which I am retrieving in order for my program (in Python v2.6). I\'m using urllib.urlretreive(). Sometimes the url prompts me for a use[详细]
2023-03-27 13:36 分类:问答Getting exif data from an image online with python
Hi Is there a way to read exif data from a online image given its url without downloading the im开发者_StackOverflowage? Right now I\'m doing something like:[详细]
2023-03-27 12:56 分类:问答