In this short example we’ll learn how to use Redis Lua scripting in NodeJS. We will create simple script that sums two fields of hash in Redis.
In this short example we’ll learn how to use Redis Lua scripting in NodeJS. We will create simple script that sums two fields of hash in Redis.
This post shows how to use ReactPHP, Curl and proxy servers together to speed up scraping process and make it asynchronous (non-blocking).
Gimmeproxy was heavily updated recently, check this article: http://256cats.com/gimmeproxy-api-major-update/
Recently I needed a lot of free proxy servers for one project. There was another requirement: proxies had to be rotated.
That means I needed to change proxy after several requests and needed many. I couldn’t use the same proxy for more than 400 requests per hour, so I had to manage some kind of timeouts.
This post shows how to scrape Instagram images and popular photos using Instagram API and PHP and how to quickly download them in parallel using Redis and Curl.
Prerequisites: PHP, Redis server (http://redis.io/)
Hi, today I’ll show you how to work with Github API in PHP.
At first let’s describe our goal: The script will extract a list of repositories using given language (e.g. Swift or Objective-C) and then get the properties like the owner, contributors and forks or watch counts for each repo and return neat JSON.
Someone on oDesk asked how to draw a grid of squares on html canvas in JavaScript, I thought I’d just answer here.
Here is what I’ve got.
[iframe width=”100%” height=”400” src=”//jsfiddle.net/15sj0rxt/1/embedded/result,js,html,css/“ allowfullscreen=”allowfullscreen” frameborder=”0”]
My client needed to automate Flickr image search. They wanted a PHP script that uses Flickr API to scrape and save pictures related to keywords with creative commons license.
Also they needed to be able to filter pictures by size and number of favorites (likes). Here is the solution.
There are many questions and discussions about scraping websites built with ASP (.aspx extension). People ask how to scrape ajax content, how to emulate button clicks, what is __doPostBack etc.
Scraping of ASP isn’t that difficult, you just have to be careful. In this article I’ll show how to do it and will provide base code for emulating ASP clicks and post requests.
Recently I needed to automate reverse image search for my client’s blog. I’ve ended up writing a simple PHP web scraper for Google Images. In this article I’ll show you how I did it.
We will use Curl and Simple Html Dom library.
If you can’t reach (eg ping returns nothing) your server from outside network, check your firewall rules at first. On CentOS it is simple: