PHP Classes

Google It: Get the latest headline from Google news

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 64%Total: 1,700 All time: 2,317 This week: 524Up
Version License Categories
googleitnews 1.0.0GNU General Publi...Text processing, Web services
Description 

Author

This class is meant to get the latest headline from Google news site.

You can choose a topic and the class will retrive the latest topic headline so you can display it in your site.

Picture of Umang Beri
Name: Umang Beri <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 1695244 in United States United States
Week rank: 128 Up19 in United States United States Up

Details

README for the GoogleIt class by Umang Beri *****QUICK NOTE***** This program was written when Google News did not have any Atom feeds or RSS feeds. They've changed their layout of the front page a few times and they also support the xml feeds which makes this application redundant and useless to update. I'm leaving it around for people to check out though. 1.0 What is a GoogleIt? 1.1 What are the applications for GoogleIt? 1.2 What are future plans? 2.0 How to use the class? 3.0 Author 3.1 License 4.0 Version *** 1.0 What is a GoogleIt? GoogleIt gets the first headline that is spat out by google news based on the topic you wanted. *** 1.1 What are the applications for GoogleIt? At the moment, you can just get the latest headline (ranging from 1 to 10 articles). More types of versions will be coming out soon. *** 1.2 This was originally made for one of my sites and I figured I would share it and changed it around so more people could use it. Since this project was more of a by chance effort than a planned one, features are low, so added features in the future will look like: i. Choose the number of headlines you want to view (Done) ii. Other News Search Engines will be made as well *** 2.0 How to use the class? Three lines of code: //Include the class file require (GoogleClass.php); //First you specify that it is an object $blah = new GoogleIt("Change Text Here"); //Then you tell it I want to print out whatever $blah->GoogleD finds. echo $blah->GoogleD(); /*Note: For the above, you can also put in a number ranging 1 to 10. Default is 10. This tells the class how many articles you want shown. eg. */ echo $blah->GoogleD(5); //list 5 stories There are now two paramaters, which you can treat like a string, which will get the headlines from news.Google.com The string can be of any length. Google Tags were removed so that the topics can be shifted around so that it can suit any site. *** 3.0 Author Umang Beri http://duniyadnd.ithium.net http://www.footymania.com *** 3.1 License GNU General Public License (Version 2, June 1991) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This Readme.txt file Must be distributed along with the original/modified files. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details @ http://www.gnu.org/licenses/gpl.txt Give credit to Google whenever you using their service. *** 4.0 License Version: 1.2

  Files folder image Files (3)  
File Role Description
Plain text file googleClass.php Class Where the main stuff happens
Accessible without login Plain text file GoogleDIT.php Example Example
Accessible without login Plain text file Readme.txt Doc. Readme

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,700
This week:0
All time:2,317
This week:524Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:58%StarStarStar
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:64%StarStarStarStar
Rank:744