• BLOG
  • ARCHIVE
  • ABOUT
  • GITHUB
  • RSS
  • Node JS Redis Lua example

    May 25, 2015

    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.

    Continue reading
  • Fast scraping with ReactPHP + Curl + Proxies

    May 7, 2015

    This post shows how to use ReactPHP, Curl and proxy servers together to speed up scraping process and make it asynchronous (non-blocking).

    Continue reading
  • GimmeProxy.com - free rotating proxy api

    May 4, 2015

    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.

    Continue reading
  • How to scrape Instagram images and quickly download photos

    Apr 26, 2015

    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/)

    Continue reading
  • How to extract data from Github API - PHP tutorial

    Mar 16, 2015

    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.

    Continue reading
  • How to draw a grid of squares on a JS canvas with tooltip

    Mar 11, 2015

    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”]

    Continue reading
  • Flickr api example in PHP / Scraping flickr images

    Feb 16, 2015

    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.

    Continue reading
  • Scraping ASP websites in PHP with __doPostBack ajax emulation

    Jan 6, 2015

    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.

    Continue reading
  • How To Scrape Google Images with PHP and Curl

    Jan 2, 2015

    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.

    So here is our task: for given image URL get the best guess and websites with this image from Google Image Search pages.

    Continue reading
  • Can't access CentOS server remotely, use tcpdump

    Jan 1, 2015

    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:

    Continue reading
PREVNEXT

© 2014 - 2017 Andrey E.

All data and information provided on this site is for informational purposes only. 256cats.com makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis. The opinions expressed on 256cats.com represent my own and not those of my employer.

https://gimmeproxy.com/ - Free proxy api

https://ip-api.io/ - Free geo ip api