Who's good at Perl or Python

rward

Senior Member
Joined
Oct 26, 2007
Messages
865
Ahh the old "I have been doing this for 15 years but can't remember how to do this super easy thing"

Coupled with the good old 'write this for me quickly' makes me think my initial R10k may be a bit low :/

'Quickly' usually involves a lot of scoere creep and extra functionality expectations..
 

dadecoza

Expert Member
Joined
Aug 30, 2006
Messages
1,294
paste the html that contains the data you are looking for and maybe one of us can help with the regex.
 

scudsucker

Executive Member
Joined
Oct 16, 2006
Messages
9,024
paste the html that contains the data you are looking for and maybe one of us can help with the regex.

That's the great thing about using Selenium for this step - it uses XPath, which is better suited to HTML than a regex, and it will generate the Python code to do so if you use the IDE.

http://www.seleniumhq.org/
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
Ahh the old "I have been doing this for 15 years but can't remember how to do this super easy thing"
Out of coding for 15 years; not how long he coded,
... might have been for 2 minutes, failed and gave up, or early onset illusory dementia, bull**** or all three.
 

Noah

Expert Member
Joined
Jan 21, 2008
Messages
1,539
Looking for a script that can pull the usage page/values of the MWEB user page and extract the Standard and Nightime usage numbers.
Will be execute at 6am so that this night time value can be deducted from the total for the day, thus giving me the normal usage for the day.

G

Can't help you cause I'm not with mweb, look at

sending a POST requests with a module called requests to login, don't forget cookies and ****.
Then use regex or something to pull the elements you want out of the page.

Did something similar for vox cause I hate logging in.
yfhpq.jpg
 

Hamish McPanji

Honorary Master
Joined
Oct 29, 2009
Messages
42,089
None of us have Mweb accounts. Please send us your username and passwords so we can test our all singing, all dancing scripts.

Mine will also get you a discount of like 50% off your Mweb bills.
 
Top