Some time ago I was looking here for a way to save web pages to a file on behalf of a real browser. The work has come to a standstill. But on another forum, unexpectedly, a person was able to help me. He wrote an external program that is launched by the Windows scheduler and saves pages opened in webwiev2 to files. It is not the source code of the web page that is saved, but the page with the result of the js work. He couldn't do it any other way. But this can even be a plus.
Program page on GitHub https://github.com/verelex/Rainmetrist
I myself don’t understand programming languages, but maybe someone can take a look, change something, and so on.
It is currently September 8th, 2024, 2:06 am
Saving a web page to a file.
-
- Posts: 149
- Joined: March 15th, 2024, 7:30 pm
-
- Rainmeter Sage
- Posts: 8030
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Saving a web page to a file.
Nice find, if it does what you say it does - thanks for sharing. Maybe it will be of some use for folks, after they compile it to an executable. Especially if it can save the web content AFTER Javascript scripts are run on the page. ![Thumbs Up :thumbup:](./images/smilies/ay.gif)
![Thumbs Up :thumbup:](./images/smilies/ay.gif)
-
- Posts: 149
- Joined: March 15th, 2024, 7:30 pm
Re: Saving a web page to a file.
I don't know how to compile myself. And I can’t check the source code of the program in any way. The author sent me an archive with a ready-made exe, but I don’t know if it can be posted.
I myself have been using it for a week now, starting with an older version of this program. Regarding js, although the site I need uses js, it doesn’t bother or help me. I just noted that apparently the result of the scripts on the page is being saved and the author confirmed this.
![Big Grin :D](./images/smilies/ag.gif)
-
- Rainmeter Sage
- Posts: 8030
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Saving a web page to a file.
Well, if you're already using it for a week and you're happy with it, it must be doing its job right. Regarding js, there are cases when some data retrieval or computation is present in the source page as a Javascript function of some sort - having the actual result of those functions (like they are displayed in the browser) able to be saved would be nice.
-
- Posts: 306
- Joined: December 28th, 2022, 9:30 pm
- Location: México
Re: Saving a web page to a file.
The .exe can be posted with no issue.Kotofanchik wrote: ↑April 18th, 2024, 6:40 pm I don't know how to compile myself. And I can’t check the source code of the program in any way. The author sent me an archive with a ready-made exe, but I don’t know if it can be posted.I myself have been using it for a week now, starting with an older version of this program. Regarding js, although the site I need uses js, it doesn’t bother or help me. I just noted that apparently the result of the scripts on the page is being saved and the author confirmed this.
-
- Posts: 149
- Joined: March 15th, 2024, 7:30 pm
Re: Saving a web page to a file.
ok, but I have nothing to do with it ![Smiler :)](./images/smilies/ab.gif)
Call the settings window using the file Rainmetrist.exe
You can enter four URLs and save four files.
I also tried to enter a line like this instead of pure URLs:
view-source:www.foreca.com/ru/100734077/Thessaloniki-Greece
It saves much faster and the data is present, but with incomprehensible features.
![Smiler :)](./images/smilies/ab.gif)
Call the settings window using the file Rainmetrist.exe
You can enter four URLs and save four files.
I also tried to enter a line like this instead of pure URLs:
view-source:www.foreca.com/ru/100734077/Thessaloniki-Greece
It saves much faster and the data is present, but with incomprehensible features.
You do not have the required permissions to view the files attached to this post.