{"id":19051008,"url":"https://github.com/chrisseto/ajax-mirror","last_synced_at":"2025-04-24T01:24:12.153Z","repository":{"id":14365830,"uuid":"17075685","full_name":"chrisseto/Ajax-mirror","owner":"chrisseto","description":"A casperjs script for cloning ajax and javascript heavy websites for offline viewing.","archived":false,"fork":false,"pushed_at":"2014-03-03T19:07:27.000Z","size":200,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T09:34:26.207Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/chrisseto.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":"2014-02-22T01:38:21.000Z","updated_at":"2024-03-23T15:16:54.000Z","dependencies_parsed_at":"2022-09-21T11:52:32.477Z","dependency_job_id":null,"html_url":"https://github.com/chrisseto/Ajax-mirror","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/chrisseto%2FAjax-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisseto%2FAjax-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisseto%2FAjax-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisseto%2FAjax-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisseto","download_url":"https://codeload.github.com/chrisseto/Ajax-mirror/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250542155,"owners_count":21447649,"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-11-08T23:16:54.798Z","updated_at":"2025-04-24T01:24:12.136Z","avatar_url":"https://github.com/chrisseto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ajax-mirror\n===========\n\nA casperjs script for cloning ajax and javascript heavy websites for offline viewing.\n\nUses [mockjax](https://github.com/appendto/jquery-mockjax) to mock ajax calls to local JSON.\n\nCurrently about 90% working.\n\n###Searching\nCreate a [custom google search](https://www.google.com/cse/create/new) and make note of your 'cx.'\nOpen search/index.html and insert your cx into the `var cx=...` statement.\n\n###404 Pages\nRename htaccess to .htaccess and place it along with 404.html into your root www/ directory.\n\n###ToDo\n* Async\n* faster\n* resume?\n* Disable buttons?\n* code review/cleanup\n* Search does not work.\n* Files GUID's\n* Hitting download links still an issue.\n* Dupilcate link issue (trailing /'s)\n\n###Done\n* not clones pages with #'s\n    - ie: index.html#somesection\n* Emebedded youtube\n* stop downloading files\n* folder Naming\n* FauxJax still catching html\n* Url params\n* create one FauxJax file?\n    - would be worse...\n* better way to pull page source\n    - Doesn't seem to be a better way\n* FauxJax double listing\n* Inject readonly flag\n* Strip piwik\n* Stripping facebook and google analytics?\n* github branches\n    - Just the issue with dashboard\n\nUsage:\n```\n$capserjs Ajax-mirror.js --web-security=no\nor\n$casperjs Build-Mirrorable.js\n$wget -x -i mirrorable.txt\n\n```\n\nTarget site defaults to localhost:5000\n\nSet target either in file or with --s=http://example.com \n                            or --server=http://example.com\n\nrun with k, `casperjs Ajax-mirror.js k`, to convert links to the current working directory.\n\nNotes:\n* Embedded youtube not working\n* This script is currently site specific.\n    - It may however work for other sites.\n* The script sometimes randomly freezes on the first couple pages.\n    - clearing the directory and restarting the script seems to fix this.\n* requires access to the filebrowser object\n* Build hgrid dump method\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisseto%2Fajax-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisseto%2Fajax-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisseto%2Fajax-mirror/lists"}