473,915 Members | 3,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

standalone process to interact with the web

Hi Everyone,

I am looking for a way to allow a standalone python process to easily
interactive with a few web pages. It has to be able to easily receive
requests from the web and post data to the web.

I am thinking about implementing a standalone soap server, but I am
not sure which library is good.

Any suggestions?

Thanks a lot,
Geoffrey

Jul 31 '07 #1
11 1652
beginner wrote:
Hi Everyone,

I am looking for a way to allow a standalone python process to easily
interactive with a few web pages. It has to be able to easily receive
requests from the web and post data to the web.

I am thinking about implementing a standalone soap server, but I am
not sure which library is good.

Any suggestions?

Thanks a lot,
Geoffrey
Look nor further than mechanize -

http://wwwsearch.sourceforge.net/mechanize/

With mechanize and its partner ClientForm you can rule the web world ;-)

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

Jul 31 '07 #2
Hi Steve,

On Jul 31, 11:42 am, Steve Holden <st...@holdenwe b.comwrote:
beginner wrote:
Hi Everyone,
I am looking for a way to allow a standalone python process to easily
interactive with a few web pages. It has to be able to easily receive
requests from the web and post data to the web.
I am thinking about implementing a standalone soap server, but I am
not sure which library is good.
Any suggestions?
Thanks a lot,
Geoffrey

Look nor further than mechanize -

http://wwwsearch.sourceforge.net/mechanize/

With mechanize and its partner ClientForm you can rule the web world ;-)

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
This seems to be an HTTP client library. It is very interesting, but
is not what I need. I am looking for something that can provide
service to web pages. For example, when a browser requests a web page,
the web page is going to send a few requests to my server. My server
then is going to respond, and the web page takes the response and
format it in human readable form.


Jul 31 '07 #3
In article <ma************ *************** ************@py thon.org>,
Steve Holden <st***@holdenwe b.comwrote:
>beginner wrote:
>Hi Everyone,

I am looking for a way to allow a standalone python process to easily
interactive with a few web pages. It has to be able to easily receive
requests from the web and post data to the web.

I am thinking about implementing a standalone soap server, but I am
not sure which library is good.

Any suggestions?

Thanks a lot,
Geoffrey
Look nor further than mechanize -

http://wwwsearch.sourceforge.net/mechanize/

With mechanize and its partner ClientForm you can rule the web world ;-)
Jul 31 '07 #4
beginner wrote:
Hi Steve,

On Jul 31, 11:42 am, Steve Holden <st...@holdenwe b.comwrote:
>beginner wrote:
>>Hi Everyone,
I am looking for a way to allow a standalone python process to easily
interactive with a few web pages. It has to be able to easily receive
requests from the web and post data to the web.
I am thinking about implementing a standalone soap server, but I am
not sure which library is good.
Any suggestions?
Thanks a lot,
Geoffrey
Look nor further than mechanize -

http://wwwsearch.sourceforge.net/mechanize/

With mechanize and its partner ClientForm you can rule the web world ;-)

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

This seems to be an HTTP client library. It is very interesting, but
is not what I need. I am looking for something that can provide
service to web pages. For example, when a browser requests a web page,
the web page is going to send a few requests to my server. My server
then is going to respond, and the web page takes the response and
format it in human readable form.

Well, surely in that case you can use any protocol you like. It's up to
the web server and your "web server server" to agree how to communicate.
Take a look at the SocketServer library, for example.

regartds
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

Jul 31 '07 #5
On Jul 31, 1:11 pm, Steve Holden <st...@holdenwe b.comwrote:
beginner wrote:
Hi Steve,
On Jul 31, 11:42 am, Steve Holden <st...@holdenwe b.comwrote:
beginner wrote:
Hi Everyone,
I am looking for a way to allow a standalone python process to easily
interactive with a few web pages. It has to be able to easily receive
requests from the web and post data to the web.
I am thinking about implementing a standalone soap server, but I am
not sure which library is good.
Any suggestions?
Thanks a lot,
Geoffrey
Look nor further than mechanize -
http://wwwsearch.sourceforge.net/mechanize/
With mechanize and its partner ClientForm you can rule the web world ;-)
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
This seems to be an HTTP client library. It is very interesting, but
is not what I need. I am looking for something that can provide
service to web pages. For example, when a browser requests a web page,
the web page is going to send a few requests to my server. My server
then is going to respond, and the web page takes the response and
format it in human readable form.

Well, surely in that case you can use any protocol you like. It's up to
the web server and your "web server server" to agree how to communicate.
Take a look at the SocketServer library, for example.

regartds
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------- Hide quoted text -

- Show quoted text -
Yes exactly. I just don't want to reinvent the wheel as I imagine
there are already tons of libraries and frameworks that support RPC or
the like functions.

Thanks,
Geoffrey

Jul 31 '07 #6
beginner wrote:
Hi Everyone,

I am looking for a way to allow a standalone python process to easily
interactive with a few web pages. It has to be able to easily receive
requests from the web and post data to the web.

I am thinking about implementing a standalone soap server, but I am
not sure which library is good.

Any suggestions?
Forget SOAP. Use XMLRPC. SOAP is bloated, not to interoperable and the last
time I checked (has been a while though) the python-implementations were
troublesome.

http://wanderingbarque.com/noninters...nds-for-simple

Diez
Aug 1 '07 #7
beginner a écrit :
Hi Steve,

On Jul 31, 11:42 am, Steve Holden <st...@holdenwe b.comwrote:
>beginner wrote:
>>Hi Everyone,
I am looking for a way to allow a standalone python process to easily
interactive with a few web pages. It has to be able to easily receive
requests from the web and post data to the web.
I am thinking about implementing a standalone soap server, but I am
not sure which library is good.
Any suggestions?
Thanks a lot,
Geoffrey
Look nor further than mechanize -
(snip)
This seems to be an HTTP client library. It is very interesting, but
is not what I need. I am looking for something that can provide
service to web pages. For example, when a browser requests a web page,
the web page is going to send a few requests to my server. My server
then is going to respond, and the web page takes the response and
format it in human readable form.
IOW, you want to embed a web server in your application.

Aug 1 '07 #8
beginner a écrit :
(snip)
Yes exactly. I just don't want to reinvent the wheel as I imagine
there are already tons of libraries and frameworks that support RPC or
the like functions.
Why go thru the pain of RPC, SOAP or such bloated horrors ? Why not just
use plain old HTTP with a RESTful API ? Then you just need to make your
app wsgi compliant.
Aug 1 '07 #9
On Aug 1, 3:50 am, "Diez B. Roggisch" <de...@nospam.w eb.dewrote:
beginner wrote:
Hi Everyone,
I am looking for a way to allow a standalone python process to easily
interactive with a few web pages. It has to be able to easily receive
requests from the web and post data to the web.
I am thinking about implementing a standalone soap server, but I am
not sure which library is good.
Any suggestions?

Forget SOAP. Use XMLRPC. SOAP is bloated, not to interoperable and the last
time I checked (has been a while though) the python-implementations were
troublesome.

http://wanderingbarque.com/noninters...he-s-stands-fo...

Diez
Thanks for the sgguestion. XML RPC is definitely a good candidate.

Aug 2 '07 #10

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

Similar topics

4
3038
by: commanderblop | last post by:
Hi there, I am in the process of translating an WIndows/ASP/MsSQL Content Managment System (CMS) to Linux/PHP/???. Is there a popular database I can use that will allow standalone files like Access did (which used .MDB files)? In order for the CMS to work, there needs to be a standalone database file that is self-contained, just like Access .mdb files are under Windows. I guess I am asking for an Access equivalent for
1
2100
by: Michael Quan | last post by:
Hello I was wondering if someone could point to me information on how to start an external process and how to interact with it For example In my C# program I want to start a process that will xcopy d:\*.* f:If the same file exist on f:\, xcopy will throw a prompt asking for y to continue I would like the C# to on select occassion issue the y or n This is just an example of the interaction of the process I am looking for. Writing a...
4
15572
by: Primo | last post by:
Hi, This problem has been frustrating me for days and I hope you experts can help me out. I am trying to run a command, which I would normally run from the command line, from within my C# application. The command runs successfully from a Windows Form but fails if the application is recasted as a Windows service. The application is essentially a File Watcher that should run the process when a file is dropped into a specific directory. ...
5
3096
by: GTS | last post by:
Hi All, I am spawning a process from a service. The spawned process hungs for various reasons, (corrupted data, deadlock). I am expecting the process has to complete the task with in the expected time limit, if it exceeds the limit I want to terminate the process (no mercy or graceful, just terminate the process). The spawnng of the process, counting the time and termination of process all done in C++. Some time I am not able to...
0
1678
by: wayne hamilton | last post by:
I'm having a problem Interacting with Command Line programs. I can read and write anything I want as long as I don't have to interact with a process once it's started. Originally I had been calling 'test.bat' directly, and in the latest incarnation (below) I am starting up cmd.exe and then writing the commands I want to execute to the command line that way. My problem is that I need to know if a program is waiting for input. In my batch...
1
2460
by: uuyytt | last post by:
I have a Windows service from which I want to start Internet Explorer with a particular URL as an argument. It can work well except when I run it on windows 2003 I allowed services explicitly to interact with the desktop and I tested with imporsonation but still not work. I don't know why my code (shown below) doesn't work. I know that IExplore.exe starts as I can see it in my task manager, but it is not visible.
1
2940
by: mengesb | last post by:
I'm looking to utilize something to the effect of this code: ps -ef | grep sc_serv | grep -v grep | awk '{print $2}' > sc_serv.pid cat sc_serv.pid 3447 3449 The first id it spits out is the screen process that I run the sc_serv command under, and that's fine, because killing that process is really what I want. Killing the second will just produce nothing. What I'd really like is for when this system boots up, it will check for the...
0
996
by: sigsik | last post by:
Hi, I'd like to run an executable process without the need to be logged on to the computer. that is why i want to run it as a window service. The executable opens a form (ui) that does not require the user interaction. it simply for me to use AxControl to manipulate visio diagrams. Since this requires me to interact with desktop i have to run the service as local system and enable the 'allow interact with desktop' checkbox....
5
1522
by: Dilip | last post by:
I am almost afraid to ask this question but under Windows Vista can an ASP.NET application launch an interactive UI based process using Process.Start(..)? I see various posts that recomment the ASPNET account be granted "interactive logon" rights. and allowing IIS Admin service to interact with the desktop. However under Vista services CANNOT interact with desktop, period (and there is no IIS Admin Service anyway). There is no ASPNET...
0
10039
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9883
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,...
1
11069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10543
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
9734
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7259
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
6149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4346
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3370
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.