{"id":16815614,"url":"https://github.com/ericzon/phantomjs-ajax-snapshot","last_synced_at":"2025-03-17T12:28:46.934Z","repository":{"id":26399290,"uuid":"29849011","full_name":"ericzon/phantomjs-ajax-snapshot","owner":"ericzon","description":"Simple script that generates static pages from ajax / non-ajax source pages. Allows stripping of DOM elements identifying them by id, class, name or meta-property.","archived":false,"fork":false,"pushed_at":"2015-11-26T14:22:27.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T22:17:45.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericzon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-26T06:58:05.000Z","updated_at":"2015-11-12T19:43:22.000Z","dependencies_parsed_at":"2022-08-29T03:43:57.863Z","dependency_job_id":null,"html_url":"https://github.com/ericzon/phantomjs-ajax-snapshot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fphantomjs-ajax-snapshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fphantomjs-ajax-snapshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fphantomjs-ajax-snapshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fphantomjs-ajax-snapshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericzon","download_url":"https://codeload.github.com/ericzon/phantomjs-ajax-snapshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244033097,"owners_count":20386872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T10:34:59.238Z","updated_at":"2025-03-17T12:28:46.912Z","avatar_url":"https://github.com/ericzon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"phantomjs-ajax-snapshot\n=======================\n\nSimple script that generates static pages from ajax / non-ajax source pages. Allows stripping of DOM elements identifying them by id, class, name or meta-property (only for meta tags). \n\n## Usage\n\n  Options:\n\n    (sourceFile | sourceUrl)\n\n    -sourceFile    (string) file with json array format, containing the set of urls to generate.\n\n    -sourceUrl    (string) single url to visit.\n\n    -basePath    (string) common basepath among urls.\n\n    -separator    (string) separator to replace '/' in file names ([---] by default).\n\n    -waitingTime    (miliseconds) Use specified waiting time to load javascript of every page (3000 by default).\n\n    -outputDir    (string) place to write the output files (static/ by default).\n\n    -idlist    (Array) elements id to strip in html (empty by default).\n\n    -classlist    (Array) elements class to strip in html (empty by default).\n\n    -metalist    (Array) elements metaname to strip in html (empty by default).\n\n    -debug    (boolean) Enables debug messages (false by default).\n\n    -outputFormat: (string) png gif jpeg pdf (html by default).\n\n## Examples\n\n**Snapshot from url:**\n\nphantomjs phantomjsAjaxSnapshot.js  --ssl-protocol=any --web-security=false --disk-cache=no -sourceurl www.my-cool-ajax-web.com -outputdir snapshots\\\n\n\n**Snapshot from url stripping DOM elements with classes a,b,c:**\n\nphantomjs phantomjsAjaxSnapshot.js  --ssl-protocol=any --web-security=false --disk-cache=no -sourceurl www.my-cool-ajax-web.com -outputdir snapshots\\ -classlist a,b,c\n\n\n**Snapshots from json array of urls:**\n\nphantomjs phantomjsAjaxSnapshot.js  --ssl-protocol=any --web-security=false --disk-cache=no -sourceFile myUrls2visit.json -basepath www.my-cool-ajax-web.com/common/path -outputdir snapshots\\\n\n\n## Tests\n\n  not yet :(\n\n## Dependencies\n\n  [Phantomjs](http://phantomjs.org/ \"Phantomjs' Homepage\") headless webkit with JS API.\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style.\nAdd unit tests for any new or changed functionality. Lint and test your code.\n\n## Author\n\n[Eric Lara](https://www.twitter.com/EricLaraAmat), supported by [Ondho](http://www.ondho.com).\n\n## License\n\n  MIT\n\n## Changelog\n\n* 0.0.2 Added format parameter.\n  0.0.1 Initial commit\n\n## Roadmap\n\n* connect with [node-ajax-snapshot](https://github.com/ericzon/node-ajax-snapshot) (WIP).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericzon%2Fphantomjs-ajax-snapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericzon%2Fphantomjs-ajax-snapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericzon%2Fphantomjs-ajax-snapshot/lists"}