https://github.com/pixelastic/php-slurp
Naive PHP proxy to download a local copy of pages you're browsing.
https://github.com/pixelastic/php-slurp
Last synced: 12 months ago
JSON representation
Naive PHP proxy to download a local copy of pages you're browsing.
- Host: GitHub
- URL: https://github.com/pixelastic/php-slurp
- Owner: pixelastic
- Created: 2012-10-15T02:14:17.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-15T02:17:09.000Z (over 13 years ago)
- Last Synced: 2024-04-12T01:05:07.570Z (about 2 years ago)
- Language: PHP
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.mkd
Awesome Lists containing this project
README
What is it ?
============
Slurp is a very simple and naive php proxy that you can use to download a website as
you are visiting it.
How does it work ?
------------------
Just edit your `hosts` file and add a line that redirect the website you want
to proxy to where `slurp` is installed.
Then configure your local webserver to redirect all unknown resources to the
main `index.php` gateway.
Slurp will then download the file initially requested and save it locally. If
the file has already been saved, `slurp` will simply return the local file.
What can I use it for ?
-----------------------
Well, I don't know for you but I used it to easily create a local copy of the
files that were downloaded when I was browsing some sites. `wget` is a great
tool, but sometimes when pages are loaded through AJAX or flash, `slurp` is
much powerful as every request will be saved locally.