Who's good at Perl or Python

georgelza

Senior Member
Joined
Sep 13, 2004
Messages
954
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
 
Last edited:

scudsucker

Executive Member
Joined
Oct 16, 2006
Messages
9,024
Hmm. Interesting.

I'm looking for a script that can deliver an ice cold beer at 5pm.

More seriously, why don't you learn a tiny bit of Python and write it yourself?

As a start you could use Selenium (an automated web test system) to read the values; then export that as Python code.

Then all you really need is the Cron job and a little logic for working out the normal usage.

I'm not quite sure what you mean by "MWEB user page" - is this your password protected user page? Selenium can be used to input your username and password and establish a session but I'm not sure that is wise....
 

georgelza

Senior Member
Joined
Sep 13, 2004
Messages
954
... ok I'll just ignore that...

As for anyone else, I will run this of my machine... or of one of my servers... which I have total control over, so not worried about the username/password.

G
 

profeet

Banned
Joined
Oct 14, 2015
Messages
1,094
[video=youtube;ksPykYrkaoA]https://www.youtube.com/watch?v=ksPykYrkaoA[/video]
 

georgelza

Senior Member
Joined
Sep 13, 2004
Messages
954
seriously guys, either contribute or go look for another thread to waste time on.
G
 

profeet

Banned
Joined
Oct 14, 2015
Messages
1,094
gmd7QIt.png
 

biometrics

Honorary Master
Joined
Aug 7, 2003
Messages
71,858
... ok I'll just ignore that...

As for anyone else, I will run this of my machine... or of one of my servers... which I have total control over, so not worried about the username/password.

G

Wow, he gives you an answer and you go "ok I'll just ignore that". Talk about being ungrateful. Don't expect help with that attitude.
 

georgelza

Senior Member
Joined
Sep 13, 2004
Messages
954
lets see.

the fact that I know this can be done with either Python or Perl, does that make you think I might have some sort of background in development.

Fact is I've been out of coding for 15 odd years, my current workload/hours is just not of that nature for me to go relearn whats needed to do this, asking for help, from someone that knows these languages back ward, for whom it might take 5 min to write this, instead you view is "go read the manual yourself and do it yourself" Know what, if I had the time to do that, I would not have asked,

if someone was willing to do this... there are quite a couple of us on MWEB that can find this script useful.

if your view of being helpful is instructions on how to do it yourself, when you lying on the floor, legs broken, and someone and you ask for help, don't cry when someone says, help yourself,

G
 

Necropolis

Executive Member
Joined
Feb 26, 2007
Messages
8,401
:) I thought "Looking for a script " would have made that clear also.

G

To be fair - if you re-read your original post you never explicitly stated that you wanted someone to do the work for you.

It does come across as more asking for ideas about how to accomplish the task.
 

georgelza

Senior Member
Joined
Sep 13, 2004
Messages
954
Hi Necropolis,

Just reread my OP and can't see how it came across as anything other than me looking for a script,

But guess my fault for asking for a script, for someone with some time on their hands and the skill to write something like this for me quickly.

Ok so let me state this : I'm looking for someone with the skill and time to write something, with not to much effort that can pull the Usage page for a user from MWEB, parse it and output, append the output as a new line to a text file the date, value 1, value 2
value1: Standard usage
value2: Nightime usage

These 2 numbers, in combination with the total daily will allow me to have my normal usage and night time usage by day, instead of just one number (summed) for both.

G
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
Hi Necropolis,

Just reread my OP and can't see how it came across as anything other than me looking for a script,

But guess my fault for asking for a script, for someone with some time on their hands and the skill to write something like this for me quickly.

Ok so let me state this : I'm looking for someone with the skill and time to write something, with not to much effort that can pull the Usage page for a user from MWEB, parse it and output, append the output as a new line to a text file the date, value 1, value 2
value1: Standard usage
value2: Nightime usage

These 2 numbers, in combination with the total daily will allow me to have my normal usage and night time usage by day, instead of just one number (summed) for both.

G

I say it again. Move to a isp that already offers this ie any other ISP apart from dark ages mweb
 

_kabal_

Executive Member
Joined
Oct 24, 2005
Messages
5,923
Ahh the old "I have been doing this for 15 years but can't remember how to do this super easy thing"
 
Top