Python Urllib2.httperror Http Error 404 Not Found
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss urllib2 urlopen 404 the workings and policies of this site About Us Learn more urllib2 httperror 404 about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack urllib2 404 exception Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping
Raise Httperror(req.get_full_url(), Code, Msg, Hdrs, Fp)
each other. Join them; it only takes a minute: Sign up urllib2.urlopen() vs urllib.urlopen() - urllib2 throws 404 while urllib works! WHY? up vote 15 down vote favorite 6 import urllib print urllib.urlopen('http://www.reefgeek.com/equipment/Controllers_&_Monitors/Neptune_Systems_AquaController/Apex_Controller_&_Accessories/').read() The above script works and returns the expected results while: import urllib2 print urllib2.urlopen('http://www.reefgeek.com/equipment/Controllers_&_Monitors/Neptune_Systems_AquaController/Apex_Controller_&_Accessories/').read() throws the following error: Traceback (most recent call last): File "
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each http://stackoverflow.com/questions/1947133/urllib2-urlopen-vs-urllib-urlopen-urllib2-throws-404-while-urllib-works-w other. Join them; it only takes a minute: Sign up urllib2.HTTPError: HTTP Error 404: Not Found up vote -1 down vote favorite My Error Message when running my python scripts using a raspberry pi Traceback (most recent call last):>Traceback (most recent call last): File "test.py", line 6, in (module) import appengineauth File "/home/pi/Downloads/google_appengine/appengineauth.py", line 30, in (module) auth_resp http://stackoverflow.com/questions/34560269/urllib2-httperror-http-error-404-not-found = urllib2.urlopen(auth_req) File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 475, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 404: Not Found I'm able to access the website. Not too sure what is the actual problem. python google-app-engine share|improve this question asked Jan 1 at 21:32 jiehui79 4 1 HTTP Error 404: Not Found means that the server couldn't find your URL resource. Although, you need to include your code! –Kris Jan 1 at 21:40 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote If you're using https://github.com/adafruit/Tweet-a-Watt/blob/master/appengineauth.py (you don't tell us where you got your appengineauth.py from, thus forcing us to guess), and its line auth_uri = 'https://www.google.com/accounts/ClientLogin' then you're likely running into the deprecation documented at https://developers.google.com/identity/pro
Sign in Pricing Blog Support Search GitHub This repository Watch 934 Star 21,029 Fork 4,034 rg3/youtube-dl https://github.com/rg3/youtube-dl/issues/8918 Code Issues 1,322 Pull requests 154 Projects 0 Pulse Graphs New issue [Youtube] HTTP Error 404: Not Found (caused by HTTPError()) #8918 Open ewnd9 opened this Issue Mar 21, 2016 · 13 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 4 participants ewnd9 error 404 commented Mar 21, 2016 $ youtube-dl "https://www.youtube.com/watch?v=UdO7_GrRttM" --verbose [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'https://www.youtube.com/watch?v=UdO7_GrRttM', u'--verbose'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2016.03.18 [debug] Python version 2.7.6 - Linux-3.16.0-60-generic-x86_64-with-Ubuntu-14.04-trusty [debug] exe versions: avconv 9.18-6, avprobe 9.18-6, rtmpdump 2.4 [debug] Proxy map: python urllib2.httperror http {} [youtube] UdO7_GrRttM: Downloading webpage ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 365, in _request_webpage return self._downloader.urlopen(url_or_request) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1929, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) Anything else I should attach? Owner rg3 commented Mar 21, 2016 It works for me here. Can you check it was not a transient error on YouTube or your ISP? ewnd9 commented Mar 21, 20