Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Web is rapidly transitioning to CSR model, old school tools for client-side web automation like curl and wget are becoming less and less useful, and yet I cannot find a good CSR web automation tool. Are there any? - essentially a modern browser engine with GUI replaced by a scripting backend for parsing a rendered DOM document and simulating user inputs. Yes, I know curl can be used to interact with REST APIs supplying data to CSR scripts, but analysing the workings of these APIs is usually time consuming
Web is rapidly transitioning to CSR model, old school tools for client-side web automation like curl and wget are becoming less and less useful, and yet I cannot find a good CSR web automation tool. Are there any? - essentially a modern browser engine with GUI replaced by a scripting backend for parsing a rendered DOM document and simulating user inputs. Yes, I know curl can be used to interact with REST APIs supplying data to CSR scripts, but analysing the workings of these APIs is usually time consuming
That said, wget and curl do not deal with javascript, which can make scraping impossible.
I have used 'phantomjs' for such tasks, or simply 'chromium --headless' (download DOM first, then use other tools to inspect).
python has tools for that, too.
You want to take a look at Web-Driver and implemenations like Selenium or Watir. Maybe the Molybdenum extension for Firefox is still alive; then this may be sufficient for small projects. I saw an enterprise base its whole testing environment on Molybdenum. It worked until approximately 150 subsequent tests had been integrated and the system choked.
... choked on a multi-tier Web-Application. *)
But even for simple tasks, rather try anything “Web-Driver”. It is enough fun to motivate for more.
*) At that moment, they recruited me to sort out the mess. Today I know I was dumb. But ask me about web-driver, if need be.
Last edited by Michael Uplawski; 06-29-2021 at 06:32 AM.
Reason: Kraut2English
I cannot find a good CSR web automation tool. Are there any?
You are either going to have to run the scripts on the client and spit out the result, or get the page source and follow it back one step at a time. I just posted a lighter resource python script to help with that. You don't have to use tkinter. You can spit out items to shell. That's why I made the script modular like that. Copy/Paste just the parts that you want. https://www.linuxquestions.org/quest...er-4175697045/
A web browsers engine that already knows how to run scripts is ideal for this. Spit out all of the requests that the web browsers engine is making.
youtube-dl will extract video data for a lot of sites.
Another option is to open the web inspector of the browser, then refresh the page, look for item.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.