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.
I'm trying to dump some web page into a text file. Normally, I do it like this:
Code:
$ wget -q -O - <URL> > file.html
The problem is, part of the page's contents are downloaded through a bit of JavaScript, and wget does not seem to support it, so I end up with only part of the page. I also tried with lynx and w3m: no luck.
So basically what I need is a browser that supports JavaScript and that can dump HTML pages into files from the command line.
The data I'm interested in is a list of genes which gets downloaded through a XMLHttpRequest, as far as I understand. This works with Firefox and other Javascript-enabled browsers, but not with (e.g.) wget.
I searched on the terms/phrase firefox, "command line," and automate. A cursory examination led me to think that other people are trying to do similar things. In particular I wondered if this page is useful to you.
I am thinking (but not certain) that what you are trying to do is just not what wget was designed for.
Last edited by blackhole54; 09-05-2008 at 03:02 AM.
I searched on the terms/phrase firefox, "command line," and automate. A cursory examination led me to think that other people are trying to do similar things. In particular I wondered if this page is useful to you.
I am thinking (but not certain) that what you are trying to do is just not what wget was designed for.
This sure looks interesting. I'll give it a try and post a follow-up with the results.
Regarding wget, yes, it seems that it was not intended that way, although there are talks of adding JavaScript capabilities as a plugin, apparently.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.