Solved

Search engine API (php)

Posted on 2014-01-08
3
500 Views
Last Modified: 2014-01-14
Hi E's, I want to collect links in my database, for any search I do in search engines.
In old times I use google with a regular expression and I get the results, but unfortunately
They codify the source code.
I want to know what is the best alternative, maybe a API, also in google, for collect links in a search.
besides google that more services are there?

The best regards, JC
0
Comment
Question by:Pedro Chagas
  • 2
3 Comments
 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 300 total points
ID: 39765488
Yes, Google found that people were doing Google searches, collecting the information by scraping the HTML response document, and storing the information.  This enabled people to use Google's information without presenting the advertisements that Google uses to earn its living.  So they fixed it.

You might want to look into the available Google APIs that return JSON or XML.  There may be costs associated with these.
https://developers.google.com/custom-search/
0
 
LVL 3

Author Comment

by:Pedro Chagas
ID: 39767437
Hi Ray, I tried use google custom search, but have not found how to do a global search, just inside a given website search.
Do you have any idea, how I do a global search, or do you thing is better I open a new question?
A good tutorial help too.

The best regards, JC
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 300 total points
ID: 39768475
I'm fairly sure you can search by topic, but the free global Google search API may be a thing of the past.  See https://developers.google.com/web-search/docs/ where it is deprecated, pointing us to custom search instead.

I've never tried it, but this looks like it might be promising:
http://blog.programmableweb.com/2012/03/21/duckduckgo-the-search-engine-youve-never-heard-of/

I've never tried this either, but I've used a lot of Yahoo services and they are mostly great.
http://developer.yahoo.com/boss/search/
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now