Comments (5)
What do you mean by "Save as complete website" ? Do you mean saving all webpages within a website ? This tool is not meant for that task, it just saves a single web page. You will have to crawl all the links and call this tool repeatedly on them yourself.
An example of such a tool is available in another repo of mine: https://github.com/abiyani/orkut-community-downloader - which is a tool I created to save all pages on my Orkut profile (and internally uses automate-save-page-as).
from automate-save-page-as.
Yeah, I am trying to write a script in PHP where I am using curl to login to a website, then get a page that has a table of contents, where each link takes me to a page that I want to then download using Firefox Save As Website Complete.
I am on a MAC, and I think the X11 setup is just proving to be too difficult for me to overcome. I can get the script to run and open Firefox, but after that it doesn't see a display, despite me using XQuartz on MAC.
So now I am looking into Firefox automation scripts, but so far nothing is recording the save as actions.
Thanks, Brian
from automate-save-page-as.
Yes I have never tested the script on Mac, and don't expect it to work either (due to the way it is intrinsically tied to X).
Btw, this tools was written before Chrome headless was available, so you should look into that for automating the task instead: https://developers.google.com/web/updates/2017/04/headless-chrome
from automate-save-page-as.
from automate-save-page-as.
from automate-save-page-as.
Related Issues (20)
- problem on Debian 9 stretch HOT 1
- Feature request: support for headless use? HOT 3
- Error: Can't open display: (null) HOT 2
- Firefox window does not close automatically in KUbuntu 18 HOT 5
- Firefox sometimes appears dysfunctional during the first run
- My browser is called 'chromium' so I had to edit the source file HOT 2
- Add a note about controlling the Save to "Webpage Complete" or "HTML Only" choice
- Mention where one got this file from
- zap Download list left at bottom of screen
- Added --dialog-wait-time HOT 1
- Is there a way to specify a cookie file to use SavePageAs on a site previously logged into? HOT 1
- XGetWindowProperty[_NET_WM_DESKTOP] failed (code=1) HOT 1
- Char % added to destination folder
- This script is working when I execute it from bash but not working if executed from a java program HOT 2
- Feature request: Save Firefox/Gecko engine's rendered HTML.
- Error message: XGetWindowProperty[_NET_WM_DESKTOP] failed (code=1) HOT 1
- Workaround for file overwrite dialog
- This tool downloads only the top of the page content
- Your windowmanager claims not to support _NET_ACTIVE_WINDOW, so the attempt to activate the window was aborted.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automate-save-page-as.