Using Requests and Beautiful Soup, with the most recent Beautiful Soup 4 docs.
Install our tools (preferably in a new virtualenv):
pip install beautifulsoup4
Using Requests and Beautiful Soup, with the most recent Beautiful Soup 4 docs.
Install our tools (preferably in a new virtualenv):
pip install beautifulsoup4
| <?php | |
| file_put_contents( 'progress.txt', '' ); | |
| $targetFile = fopen( 'testfile.iso', 'w' ); | |
| $ch = curl_init( 'http://ftp.free.org/mirrors/releases.ubuntu-fr.org/11.04/ubuntu-11.04-desktop-i386-fr.iso' ); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt( $ch, CURLOPT_NOPROGRESS, false ); | |
| curl_setopt( $ch, CURLOPT_PROGRESSFUNCTION, 'progressCallback' ); | |
| curl_setopt( $ch, CURLOPT_FILE, $targetFile ); |
| # ---------------------------------------------------------- | |
| # Configuration for hosting Git repositories with Apache 2.x | |
| # ---------------------------------------------------------- | |
| # | |
| # This setup provides "dual URLS", where URL like <http://git.example.com/my_repository.git> | |
| # loads Gitweb in the browser and the same URL can be used in commands like `git clone` and `git remote add`. | |
| # It was compiled from some sources on the internet and further customized/tuned. | |
| # | |
| # Please see documentation for: | |
| # |