You know web scraping is a useful technique of data extraction from websites, especially if there is no any API or there is a ton of data that can’t be got in another way. The most simple and well-known way is to use CURL. But it is easy only in the aspect of using third-party components and widespread because of its universality. Our goal is…
Kategorie: PHP Rezepte
BTC-e Trading Bot Written in PHP
Nowadays, the popularity of bitcoin (BTC) is increasing tremendously, there are quite a few BTC excahge sites on the web. After experiencing certain difficulties with MtGox, people started looking for alternatives, and one of them was a Russian exchange https://btc-e.com These days when bitcoin increased like 10 times in two weeks, people started actively looking for automated trading solutions. I’ve been trying to find a…
PHP Website Scraping using Chrome Web Driver
Sometimes it happens that there is a complex website that is can’t be parsed with so called „regular“ cURL + DOM xpath technique. People tend to protect their data with Javascript techniques, nowadays there are pure-Javascript sites popular, and, as you know, one can’t interpret JS using PHP or any other language you’re using for scraping (unless you scrape with nodejs, but I haven’t tried…
Backup of MySQL database with a PHP script
Sometimes you need to make a mysqldump backup without having SSH access or PHPMyAdmin. It can be done with PHP by means of SHOW TABLES/SHOW CREATE TABLE mysql queries. Below is an improved solution proposed here. Improvements: [list style=“upper-alpha tick“] [list_item]Got rid of memory_limit – writing to file on every iteration[/list_item] [list_item]gzip support – you don’t have to download huge uncompressed .sql[/list_item] [list_item]PHP notice fixed[/list_item]…
Using ZF for uploading PDF to Google Docs API 3.0
Zend Framework has many methods for working with Google Apps Platform in Zend_Gdata module. But has no method for uploading pdf file to new Google Docs API 3.0. So we created simple ZF class for uploading pdf to Google Docs