Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
urlopen
- Page 1
urlopen issues for http POST in Windows.
Programming
Software Development
14 Years Ago
by foco
… run it in Windows, I get this error: Error: <
urlopen
error [Errno 10035] A non-blocking socket operation could not…) #properly encodes parameters req = urllib2.Request(url, data) response = urllib2.
urlopen
(req) the_page = response.read() print the_page except Exception, detail: #if…
Re: Concantating Str and Int objects via urlopen
Programming
Software Development
12 Years Ago
by snippsat
urlopen
() take string as argument. So no need to use input() …
urllib2.URLError: <urlopen error unknown url type: 'http> using twill on gmail.com
Programming
Software Development
15 Years Ago
by amadain
…to access gmail but I got a urllib2.URLError: <
urlopen
error unknown url type: 'http> error when I…/mechanize/_opener.py", line 180, in open response =
urlopen
(self, req, data) File "/opt/ams/amadain/lib/…('unknown url type: %s' % type) urllib2.URLError: <
urlopen
error unknown url type: 'http> Thanks M
Concantating Str and Int objects via urlopen
Programming
Software Development
12 Years Ago
by clouds_n_things
… there is...I mean this IS python! from urllib2 import
urlopen
width = input("Please enter a width specification here: "…;http://www.placekitten.com/" + width + "/" + height kitten =
urlopen
(url).read() kitten_file = open('/Users/SirPrinceKai/Desktop/adorable_kitten.jpg', 'w…
urllib.request.urlopen (python 3)
Programming
Software Development
16 Years Ago
by scru
…. Ideas? EDIT: I decoded the bytes returned by urllib.request.
urlopen
with the latin-1 encoding and saved it to a…
Re: Concantating Str and Int objects via urlopen
Programming
Software Development
12 Years Ago
by clouds_n_things
Thanks snippsat!
Re: urllib.request.urlopen (python 3)
Programming
Software Development
16 Years Ago
by scru
Never mind, it's a bug in python 3: [url]http://bugs.python.org/issue4631[/url]
submitting webform using ClientForm
Programming
Software Development
14 Years Ago
by dbphydb
….Request("%s" % final_url) response = urllib2.
urlopen
(request) forms = ClientForm.ParseResponse(response, backwards_compat = False)…##request2 = form.click() try: response2 = urllib2.
urlopen
(request2) except urllib2.HTTPError, response2: pass print response2.…
How to create a clickable web-page link
Programming
Software Development
15 Years Ago
by Romber
…://www.google.com/finance/company_news?q=NASDAQ:GOOG' articles = urllib2.
urlopen
(website).read() soup = BeautifulSoup(articles,selfClosingTags = ["br"]) stories…://www.google.com/finance/company_news?q=NASDAQ:AAPL' articles = urllib2.
urlopen
(website).read() soup = BeautifulSoup(articles,selfClosingTags = ["br"]) …
Re: How to create a clickable web-page link
Programming
Software Development
15 Years Ago
by Hummdis
…://www.google.com/finance/company_news?q=NASDAQ:GOOG' articles = urllib2.
urlopen
(website).read() soup = BeautifulSoup(articles,selfClosingTags = ["br"]) stories…://www.google.com/finance/company_news?q=NASDAQ:AAPL' articles = urllib2.
urlopen
(website).read() soup = BeautifulSoup(articles,selfClosingTags = ["br"]) …
python script posting to trac problem
Programming
Software Development
15 Years Ago
by narfman0
…(passman) opener = urllib2.build_opener(authhandler) urllib2.install_opener(opener) text=urllib2.
urlopen
(tracDownloadsURL + '?action=edit').read() formToken = parseFormToken(text) version = …Utils.py", line 145, in postNewTracPage response = urllib2.
urlopen
(req) File "/usr/lib64/python2.5/urllib2.py"…
help solve error
Programming
Software Development
14 Years Ago
by dbphydb
…13.27:8080/cruisecontrol" from urllib2 import
urlopen
from HTMLParser import HTMLParser import re # Fetching… def get_links(url): parser = MyHTMLParser() parser.feed(
urlopen
(url).read()) parser.close() return parser.links # …", line 13, in get_links parser.feed(
urlopen
(url).read()) File "C:\Python26\lib\…
How to pass the parameters to a script?
Programming
Software Development
17 Years Ago
by balance
…quot; if packages is None: packages = {} source = urllib.
urlopen
(url).read() soup = BeautifulSoup(source) downloadheader = soup('div', … = urlparse.urljoin(url,archlinks[0]['href']) mirrorpage = urllib.
urlopen
(archlink).read() mirrorsoup = BeautifulSoup(mirrorpage) downloadlink = mirrorsoup.firstText…
I have an infinite loop and I don't know why!
Programming
Software Development
16 Years Ago
by mn_kthompson
…',str(len(msulinks)) try: data = urllib2.
urlopen
(eachlink) print '\tAfter urllib2.
urlopen
msulinks is',str(len(msulinks)) except urllib2.URLError… format = formatter.NullFormatter() htmlparser = MSULinkExtractor(format) data = urllib2.
urlopen
("http://www.mnsu.edu/staff") htmlparser.feed(data…
urllib2 problem
Programming
Software Development
15 Years Ago
by leegeorg07
…) permlist.append(str(url.
urlopen
(temp).readlines()[88])) textlist.append(str(url.
urlopen
(temp).readlines()[77])) for… in <module> permlist.append(str(url.
urlopen
(temp).readlines()[88])) File "C:\Python26\lib…\urllib2.py", line 124, in
urlopen
return _opener.open(url, data, timeout) File &…
searching a text on an html page
Programming
Software Development
14 Years Ago
by dbphydb
…27:8080/cruisecontrol" from urllib2 import
urlopen
from HTMLParser import HTMLParser import re # Fetching…def get_links(url): parser = MyHTMLParser() parser.feed(
urlopen
(url).read()) parser.close() return parser.links #…quot;, line 11, in get_links parser.feed(
urlopen
(url).read()) File "C:\Python26\…
Re: another regular expression error
Programming
Software Development
14 Years Ago
by dbphydb
…8080/cruisecontrol" from urllib2 import
urlopen
from HTMLParser import HTMLParser import re #… get_links(url): parser = MyHTMLParser() parser.feed(
urlopen
(url).read()) parser.close() return parser.links…branch print url parser = DataParser() parser.feed(
urlopen
(url).read()) parser.close() parser.data [B…
Dictionary limit?
Programming
Software Development
13 Years Ago
by Creatinas
… dic[b]=i a = a + 1 else: f = urllib.
urlopen
("*****" % params2).read() linkai = re.compile('</a>….findall(linkai, f) for link in surasti: u = urllib.
urlopen
(link).read() urlas = re.compile('ne"><a…
Re: urllib in python 3.1
Programming
Software Development
15 Years Ago
by bumsfeld
… html text string # Python3 uses urllib.request.
urlopen
() # instead of Python2's urllib.
urlopen
() or urllib2.
urlopen
() import urllib.request fp = urllib.request….
urlopen
("http://www.python.org") mybytes = fp…
Re: another regular expression error
Programming
Software Development
14 Years Ago
by dbphydb
… using HTMLParser def get_links(url): parser = MyHTMLParser() parser.feed(
urlopen
(url).read()) parser.close() return parser.links # def build_check(…url): parser = DataParser() parser.feed(
urlopen
(url).read()) parser.close() return parser.data # Build url for…
Re: another regular expression error
Programming
Software Development
14 Years Ago
by TrustyTony
… links using HTMLParser def get_links(url): parser = MyHTMLParser() parser.feed(
urlopen
(url).read()) parser.close() return parser.links # def build_check(url…): parser = DataParser() parser.feed(
urlopen
(url).read()) parser.close() return parser.data # Build url for…
Re: How to pass the parameters to a script?
Programming
Software Development
17 Years Ago
by G-Do
… occurs because the "downloader" module, urllib, has a
urlopen
() function which doesn't recognize the URL being passed in….py, the main script. That line says:[CODE]source = urllib.
urlopen
(url).read()[/CODE]where 'url' is an input parameter to…
A python script with input
Programming
Software Development
16 Years Ago
by ALPHA_Wolf
….rstrip() != masterCheckSum.rstrip(): retryCount = 5 pyBanHandler = urllib.
urlopen
( "http://website" ) pyBanContents = pyBanHandler.read() …masterCheckSum.rstrip() ) and ( retryCount > 0 ) ): pyBanHandler = urllib.
urlopen
( "http://website" ) pyBanContents = pyBanHandler.read() pyBanHandler.close() …
the 'mechanize' library
Programming
Software Development
16 Years Ago
by k9triz
… called ClientForm: [code]from ClientForm import ParseResponse from urllib2 import
urlopen
response =
urlopen
("http://www.bairstoweves.co.uk/") forms = ParseResponse…(response, backwards_compat=False) form = forms[0] print
urlopen
(form.click()).read() [/code] -- same error can anyone tell me…
Banging head against SAX
Programming
Software Development
16 Years Ago
by fake-name
…="+bc print strQuery print ("\n") ISBNdb_fh = urllib.
urlopen
(strQuery) ISBNdb_XML = ISBNdb_fh.read() print ISBNdb_XML ch = BookHandler( ) saxparser = make_parser…\sax\saxutils.py", line 298, in prepare_input_source f = urllib.
urlopen
(source.getSystemId()) File "C:\Python25\lib\urllib.py"…
Working with html files
Programming
Software Development
16 Years Ago
by luke77
…finance.yahoo.com/q?s='+ticker pagehtml=urllib2.
urlopen
(tickerurl)[/CODE] This returns a big string …='http://finance.yahoo.com/q?s='+ticker tickerhtml=urllib2.
urlopen
(ticker) for i in tickerhtml.readlines(): print i…this by looking at the source code that
urlopen
returns, and essentially searching for the words '…
Urllib suddenly stopped working
Programming
Software Development
16 Years Ago
by trihaitran
…/applications from a Time Machine backup. When I use urllib.
urlopen
() I get the following error: [code] >>&…gt; import urllib >>> u=urllib.
urlopen
(aUrl) Traceback (most recent call last): File "<…/lib/python2.5/urllib.py", line 82, in
urlopen
return opener.open(url) File "/Library/Frameworks/Python.…
Script which reads after url redirect
Programming
Software Development
15 Years Ago
by jaseerabubakar
… data) print(req.get_origin_req_host()) response = urllib.request.
urlopen
(req) urlresponse = response.geturl() print(urlresponse)[/CODE]…in <module> response = urllib.request.
urlopen
(req) File "D:\ProgramFiles\Python30\lib\urllib…\request.py", line 122, in
urlopen
return _opener.open(url, data, timeout) File…
urllib in python 3.1
Programming
Software Development
15 Years Ago
by Lingson
…/def/linkedlist.php?nothing=12345' text = urllib.
urlopen
(url).read() [/CODE] but when i tried …linkedlist.php?nothing=' current = '12345' response = urllib.request.
urlopen
(url+current) text = response.read() current = text[-5:]… response = urllib.request.
urlopen
(url+current) [/CODE] it gives me an error: Can…
Re: urllib2 problem
Programming
Software Development
15 Years Ago
by djidjadji
[CODE=python] for i in range(1, 638): try: temp=start+str(i) permlist.append(str(url.
urlopen
(temp).readlines()[88])) textlist.append(str(url.
urlopen
(temp).readlines()[77])) except Error: # catch any exception and continue the for loop print "Error at index %d."%i [/CODE]
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC