Maybe OT: change text in .txt doc in response to a specific change on a webpage?

As above, I use windoze but can also implement something in Ubuntu or pytho n possibly, but can anyone give any pointers how o would go about doing thi s? Basically, I i using a bot to trade cryptocurrencies and want to restrict i ts buying to only buy when certain buy/sell signals are indicated on the tr ading view website. So basically I need something to constantly watch that page and change an entry in a .txt file in response.

Cheers

Steve

Reply to
eccentricdyslexic
Loading thread data ...

Right. on linux you could use a script invoking CURL to scrape teh website, then use fc ro compare the page with a prevuous and output te snaser to a txt fule, or get out yer C compiler... and learn the delights of libcurl

Run that under cron...

Reply to
The Natural Philosopher

The sites I scrape use wget to grab the page, and regex's to extract the information I want all under a Perl script.

This works provided the page you grab actually contains the information you want, seeing it on screen doesn't mean it's contained in the HTML. There is a growing tendancy to use javascript, fed with machine generated codes, to get the data from the sites backend and pass the result of that to the browser. You could call the the javascript and parse the result but unless you can work out what code(s) to use that ain't going to work.

Reply to
Dave Liquorice

If you know the text layout then continually refresh the page and look at the area for content changes. Brian

Reply to
Brian Gaff

Interestingly this sort of thing is what screenreaders do all the time to advise us blindies of what has changed etc so it only reads the minimum. It might be interesting to look at how NVDA works as it is mostly controlled by the last languaage mentioned in the original post but speed dependent routines are written in c. Brian

Reply to
Brian Gaff

I scrape info from CoinMarketCap with an api into google docs, I maybe able to do something similar with tv. Then, depending on the values trigger some sort of macro to alter the value in notepad ++...

Thanks peeps

Steve

Reply to
eccentricdyslexic

HomeOwnersHub website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.