There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Solved: python web auto updater (spider question)


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
mphair's Avatar
Senior Member with 146 posts.
 
Join Date: Dec 2005
Location: Huntington Beach, CA
Experience: I get by
07-Jun-2006, 01:36 AM #1
Solved: python web auto updater (spider question)
i'm writing an auto updater for a site in python. ive gotten everything done except for one thing...clicking a button
i know very little about web-app programming, thus my frustration with this portion of the project. the html for the button is this:
Code:
INPUT onClick=DdnsSub(this.form) type=button value='Save Settings'
any help (even if it isnt python specific, just the general idea of what i need to do) would be greatly appriciated.
thanks,
mphair

edit - ive found out some stuff. i need to somehow manipulate the javascript that's embeded in the source of the page. i found the script code:

Code:
<script language=JavaScript>
function DdnsSub(F)
{
  if( F.DdnsUsername.value == "" || F.DdnsPassword.value == "" || F.DdnsHostname.value == "" )	
  {	
    alert('DDNS characters miss.');		
    return false;
  }
  F.submit();
}
function SelDDNS(F)
{
  F.DDNS_Seltype.value = F.DDNSProvider.value;
  F.submit();
}
</script>
now, i still dont know what to do in my python program...

edit:

when i click the button in a browser, the addressbar gives me all of the information i need. i just used urllib2.urlopen() function with the address in the function.
__________________
If you can see Chuck Norris, he can see you. If you can't see Chuck Norris you may be only seconds away from death.

If I do not respond to a quote/question in a thread in three days, send me a PM.

If you know gtard*10^kp, you know me.

Last edited by mphair : 07-Jun-2006 04:17 PM.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:49 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.