Posts

Showing posts from November, 2012

Web Scraping Amazon with PHP

This snippet of PHP code demonstrates web scraping. It reads a sample page from Amazon.com, compares the HTML text against certain class name and outputs that matched text in an RSS feed.  <?php  $now   = date("D, d M Y H:i:s T"); $ASIN  = $url = $img = $title = $bio = $name = ""; $head = '<?xml version="1.0" encoding="ISO-8859-1"?>'; $head .= '<rss version="2.0">'; $head .= '<channel>'; $head .= '<title>Amazon </title>'; $head .= '<link>http://www.amazon.com</link>'; $head .= '<description>Amazon RSS Feed</description>'; $url = "http://www.amazon.com/Best-Sellers-Kindle-Store/zgbs/digital-text/"; $text = file_get_html($url); foreach ($text->find("div.zg_item_compact") as $class) {   foreach ($class->find('strong.price') as $price) {     if ($price->plaintext == "Free"

jQuery dynamic number ticker

This is a fascinating little script that helps you display a dynamic JSON feed of numbers that automatically updates on the page by animating up or down to the current number. A great addition as part of a realtime analytical dashboard. read more Click Here

jQuery Spectragram – An Instagram API jQuery plugin

Spectragram.js  is a jQuery plugin using the Instagram API to fetch and display user, popular or tags photo feeds inside a list or any container you define and display the results as list items or any other HTML tag you define. You can also define the size of the pictures (small, medium, large). Read More Click Here

BUSTING THAT CREATIVE SLUMP YOU’RE IN

BUSTING THAT CREATIVE SLUMP YOU’RE IN Read More  Link1   LEARNING PRINCIPLES FOR IMPROVING YOUR CSS Read More  Link2

jQuery Open Responsive Panel

Open Panel OpenPanel is a jQuery plugin that allows you to open panel at any where in your page, unlimited panels as you want and support for responsive design. With this small plugin you can open more space for your site to add anything you want. Features: Open Panels Anywhere in Your Sites. Unlimited Panels Support Responsive Design. Inline Content for SEO Purpose. Support Ajax Content. Four Directions Slide and Fade Effects. More Details  click here

7 Tools To Make An RSS Feed Of Any Website

Image
Considering how popular RSS feeds have become (primarily among blogs, but also elsewhere), I find it annoying when I come across websites that offer constantly updated content in a “feed-friendly” format, but neglect to offer this option. Other times, I just want a more refined feed of one category of a blog. Some blogs offer multiple RSS feeds for each category, but many do not. This is why I have compiled a list of online web services which allow anyone to create an RSS feed of any website. Some are very simple while others are more advanced, so depending on your level of expertise, you are sure to find a tool that can help you get the custom RSS feed you are seeking. 1.  Feed43  – My personal favorite, Feed43 is definitely not for the faint of heart. With this service I had the most control over the final appearance of the feed, but I also had to take a look at the  tutorial  to get an understanding of how the syntax works to create variables. If that last statement was too