Any suggestions as to how to go about retrieving data - specifically a single string - from a web page...
I'm thinking of using www/lynx to retrive a page and then try to parse the result, but am not sure if lynx is capable of being scripted.
Any advice welcome....
You could consider fetch(1).
It is in FreeBSD base and allows you to download a single web page to a file or stdout. Then you could grep/sed for the string?
Use Perl, Python, Ruby, LUA, whatever. Almost all scripting languages have something for this. My personal favorite is still www/p5-libwww (yes, I'm still a Perl monger).
Lynx or Wget (especially useful for reloading needed cookies for some websites) in a Bourne shell script with grep and sed. (I've done it hundreds of times.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.