473,795 Members | 2,919 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URL as input -> "IOError: [Errno 2] The system cannot find the path specified"

Hello

I'm trying to use urllib to download web pages with the GET method,
but Python 2.5.1 on Windows turns the URL into something funny:

========
url = "amazon.fr/search/index.php?url=s earch"

[...]

IOError: [Errno 2] The system cannot find the path specified:
'amazon.fr\\sea rch\\index.php? url=search'

f = urllib.urlopen( url)
========

Any idea why it does this?

Thank you.
Oct 24 '08 #1
2 3191
On Fri, 24 Oct 2008 19:56:04 +0200, Gilles Ganault wrote:
I'm trying to use urllib to download web pages with the GET method, but
Python 2.5.1 on Windows turns the URL into something funny:

========
url = "amazon.fr/search/index.php?url=s earch"
This "URL" lacks the protocol! Correct would be http://amazon.fr… (I
guess).
[...]

IOError: [Errno 2] The system cannot find the path specified:
'amazon.fr\\sea rch\\index.php? url=search'
Without protocol it seems that the 'file://' protocol is used and there
is no such file on your system.

Ciao,
Marc 'BlackJack' Rintsch
Oct 24 '08 #2
On 24 Oct 2008 18:02:45 GMT, Marc 'BlackJack' Rintsch <bj****@gmx.net >
wrote:
>This "URL" lacks the protocol! Correct would be http://amazon.fr… (I
guess).
Thanks, that did it :)
Oct 24 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
80192
by: Loi | last post by:
Hi All, I use Bulk insert to put data to myTable. When the SQL server is in local machin, it works well. But when I put the data in a sql server situated not locally, then I get a error message like this: Could not bulk insert because file 'C:\Data\2003 txtfiles\abif_20031130.txt' could not be opened. Operating system error code 3(The system cannot find the path specified.).
0
3122
by: SampathTangudu | last post by:
Hi, We are trying to use the Hash Tables for passing information from one aspx page to another aspx page. We are using the below code. IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore( IsolatedStorageScope.User | IsolatedStorageScope.Assembly |IsolatedStorageScope.Domain , null, null );
6
27863
by: chanmm | last post by:
Dear all, I have run the same web application in my Windows XP Pro without any problem but once I deploy it in Windows 2003 Server the message below appear: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) I checked all the files I need in those paths and nothing is missing in fact. Anyone can help?
2
8720
by: Ben | last post by:
Hi We have setup a Strong Name for our Applications, but are having problems with the essembly throwing an error: Error creating assembly manifest: Error reading key file '..\..\..\OurKey.snk' -- The system cannot find the file specified. <Assembly: AssemblyKeyFile("..\..\OurKey.snk")>
0
3632
by: Francois Stander | last post by:
Hi, No matter how I tried, I could net get it right to add a reference to my vb.net project, displaying the correct path. I have ms word 2003, running xp pro, version 5.1.2600 service pack 2 I would like to add the OLB file Microsift Word 11.0 object library. Whether I use "add a reference from right click on solution explorer (find it from the list or from actial directory), it does not matter, it reflects the path as <the system cannot find...
0
3396
by: Curious | last post by:
Hi, I'm not sure if this is the right place to post such command issues. If you know a better forum where people respond to messages fairly often, please let me know! Anyway, would appreciate your help! --------------------------------------------------------------------------------------------------------------- Hi, I've created a scheduler job with FORFILES command to delete files
1
6318
by: NamelessNumberheadMan | last post by:
I'm having trouble reading in an xml file. My servlet retrieves the file path from the init parameters without a problem, but when I try to create a FileInputStream I get this: javax.servlet.ServletException: \WEB-INF\classes\specialInstructions\specialInstructions.xml (The system cannot find the path specified) My file is there, and I can read it in if I create a URL. ex: URL xmlPath = servletContext.getResource(this.filePath); ...
0
2879
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, my problem is about services. I try comment you all steps for my issue: My development environment: Windows XP SP2
0
6002
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, my problem is about services. I try comment you all steps for my issue: My development environment: Windows XP SP2
0
9522
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10002
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2921
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.