Top "Urlopen" questions

The urlopen is a method of the urllib library in Python, used to open a particular URL.

Web-scraping JavaScript page with Python

I'm trying to develop a simple web scraper. I want to extract text without the HTML code. In fact, I …

python web-scraping python-2.x urlopen
Let JSON object accept bytes or let urlopen output strings

With Python 3 I am requesting a json document from a URL. response = urllib.request.urlopen(request) The response object is …

python json python-3.x encoding urlopen
Parsing HTTP Response in Python

I want to manipulate the information at THIS url. I can successfully open it and read its contents. But what …

json api python-3.x dictionary urlopen
Python check if website exists

I wanted to check if a certain website exists, this is what I'm doing: user_agent = 'Mozilla/20.0.1 (compatible; MSIE 5.5; Windows …

python html urlopen
Python 3.5.1 urllib has no attribute request

I have tried import urllib.request or import urllib The path for my urllib is /Library/Frameworks/Python.framework/Versions/3.5/…

python python-3.x urllib urlopen
Passing a variable in url?

So I'm new in python and I desperately need help. I have a file which has a bunch of ids (…

python json url urllib urlopen
ImportError : cannot import name urlopen

I am trying to open up an URL for my project and here is my code: from urllib2 import urlopen …

python python-import importerror urlopen
python urllib2 urlopen response

python urllib2 urlopen response: <addinfourl at 1081306700 whose fp = <socket._fileobject object at 0x4073192c>> expected: {"token":"…

python urllib2 urlopen
How to fetch a non-ascii url with Python urlopen?

I need to fetch data from a URL with non-ascii characters but urllib2.urlopen refuses to open the resource and …

python unicode urllib2 non-ascii-characters urlopen
How to use urllib2.urlopen to make POST request without data argument

I am trying to use urllib2.urlopen to perform GET and POST requests via the Facebook Graph API. I noticed …

python facebook-graph-api urllib2 urlopen