473,738 Members | 7,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Makin search on the other site and getting data and writing in xml

Hi
is it possible to make search on for example on google without api with
a list of words
1- there is word list
2- the script will take the words from the list by turn
3-it iwll make the search
4-will get results
5-will write the results as xml file.

i dont mean only google, for other sites aswell

I hope we get a result

Sep 25 '06 #1
25 1820
<al**********@g mail.comwrote:
is it possible to make search on for example on google without api with
a list of words
1- there is word list
2- the script will take the words from the list by turn
3-it iwll make the search
4-will get results
5-will write the results as xml file.
http://www.google.com/terms_of_service.html

"You may not send automated queries of any sort to Google's system without express
permission in advance from Google."

</F>

Sep 25 '06 #2

I dont mean only google, also other sites aswell

Sep 25 '06 #3

al**********@gm ail.com wrote:
I dont mean only google, also other sites aswell
Google expressly forbids doing any form of automated search outside of
their api. If you want to write a script that will run Google searches,
you have to use the api to do so. As far as I know most of the other
search sites have the same requirement.

Yes, it is possible to query a bunch of search sites and dump the
results into an xml file. It is not even all that hard. In fact, I bet
running a search on the relevant terms will probably produce something
that almost does what you want.

-Adam

Sep 25 '06 #4
Thank you very much for your explications. I dont mean a search engine.
for example a dictionary site for searching words.

Sep 25 '06 #5
For example i give you an example about making search on one of the
site and get the result.

# #!/usr/bin/python
# # -*- coding: windows-1254; -*-
#
# import urllib
# dictionary = {} # wow, it's actually a dictionary
# words = ['apple', 'banana', 'cheese']
# for word in words:
# dictionary[word] =
urllib.urlopen( "http://www.example.com/look.php?w=" + word).read()
#
# print dictionary

i dont know how i can get the words from a txt file for searching by
turn

Sep 26 '06 #6

And also writing the result as a html or xml file

Sep 26 '06 #7
On Mon, 25 Sep 2006 13:51:55 +0200, Fredrik Lundh wrote:
http://www.google.com/terms_of_service.html

"You may not send automated queries of any sort to Google's system without express
permission in advance from Google."
I'm not just being a pedantic weasel here, but what's an automated query?
Google's ToS is a legal document (maybe), and if both parties don't agree
on the meanings of terms, well, then it is a lousy legal document and a
recipe for trouble.

Google don't define "automated query"it, and I don't think they can. In
fact, the closest they come to defining it is to list three things they
want to prevent, NONE of which have anything to do with the distinction
between automated and non-automated.

(What on earth is "meta-searching"? If you're going to use terms which
don't have a commonly understood meaning, define what they mean.)

If I want to search for "foo", and I type "foo" into the Firefox search
box, is that an automated query?

What if I type "gg: foo" into Konqueror's address bar, which expands to
"http://www.google.com/search?q=foo"? Is it okay if I type the URL by hand
myself?

Can I use the browser to save the search page to a local HTML file? If
Google says no, how can they possibly hope to stop me?

What if I type this command into my shell?

elinks --dump "http://www.google.com/search?q=foo" output.html

What if I type

wget "http://www.google.com/search?q=foo"

into the shell? Surely that's no more automated than typing "foo"
into Google's search box. (wget doesn't in fact work, as Google recognises
its user-agent string and blocks it, EVEN in cases where I am using wget
manually. What, can't Google themselves tell the difference between
automatic and non-automatic searching?)

Where is the line I must not cross?

The thing is, Google doesn't want people "reselling" their services, and I
respect Google's intention. But trying to draw a distinction between
"automated" and "non-automated" requests is difficult if not impossible,
as can be seen by the heavy-handed way Google blocks the manual use of
wget. I don't condone the gross abuse of Google's service, but I don't
think an artificial distinction between automated and non-automated is a
useful way to go about it.

Of course, what I think isn't important. If Google wants to write legal
contracts that won't stand up in court (speaking as somebody who isn't a
lawyer and whose legal advice is worthless), they can. But the point is, I
see no ethical nor legal reason why a user can't create a script which is
called MANUALLY by the user and does what a browser does, namely send and
receive data from websites (which may or may not include Google).

And that, it seems to me, is what the Original Poster wanted.

--
Steven D'Aprano

Sep 26 '06 #8
al**********@gm ail.com wrote:
i dont know how i can get the words from a txt file for searching by
turn
checking the "reading and writing files" section in the tutorial might
be somewhat helpful:

http://docs.python.org/tut/node9.htm...00000000000000

</F>

Sep 26 '06 #9
Steven D'Aprano wrote:
On Mon, 25 Sep 2006 13:51:55 +0200, Fredrik Lundh wrote:

> http://www.google.com/terms_of_service.html

"You may not send automated queries of any sort to Google's system without express
permission in advance from Google."


I'm not just being a pedantic weasel here, but what's an automated query?
Google's ToS is a legal document (maybe), and if both parties don't agree
on the meanings of terms, well, then it is a lousy legal document and a
recipe for trouble.

Google don't define "automated query"it, and I don't think they can. In
fact, the closest they come to defining it is to list three things they
want to prevent, NONE of which have anything to do with the distinction
between automated and non-automated.
The fact remains that Google can chop your searching ability off at the
knees if *they* determine that you have broken the terms of service, so
whether you agree or not becomes slightly academic.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Sep 26 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1491
by: Amir Davoodi | last post by:
Dear Friends, I've got a web application using ASP, 65001 codepage and Microsft Access As DataStore. I have imported some data from FOX(DOS) into access and when I try to search on this data using T-SQL LIKE, it dosn't work correctly. Would you please help me, Thanks, Amir Davoodi.
0
865
by: aa | last post by:
how to change provider for all site management data in ASP2.0 I see just one aspnetsql provider, but i cant add new
2
2336
by: John | last post by:
Does anyone know how to how to performance case-insensitive search on XML data type in SQLServer 2005? Or I have to convert all the xml data to lower case before I store it? Thanks in advance. John
4
3573
by: gwtc | last post by:
Here is a google search site bookmarklet. This lets you search a certain website using google. What I want is the same thing, but to search a certain geocities site. When you use the current bookmarklet, the search takes you to site:www.geocities.com instead of the specific site you want to search. Can someone modify this for me, to search specific geocities sites? Thanks for your help and btw I'm using Mozilla Suite and Firefox. ...
0
1045
by: MatchSQL | last post by:
http://www.MatchSQL.com Match your Design site's data schema and SQL statement to Application site between MSSQL 2000 , SQLServer 2005 , SQL Server 2005 EXPRESS
1
1073
slapshock
by: slapshock | last post by:
hi....can u help me with my problem??? i need the codes on how add, delete, search and view data from listview in vb.net... hope you can help me... i am new in .NET...and i dont know how to do it
9
3455
by: nickyeng | last post by:
Hi My case is i get the error on runtime while getting data from a file. i get this error: Record of 12344 is found! 5 testing 4272 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack) Segmentation fault (core dumped)
6
3333
by: bushwacker | last post by:
Hello all, I'm a chemical engineering student. our teacher has given us a project to do some calculations based on some equations. those equations include constants, which are to be read from a file(I don't understand why?) i took an introductory course on c programming but the curriculum didn't include opening files, searching files and getting data from files. i made some searching through google and learned about opening and closing files,...
7
1851
by: =?Utf-8?B?SklNLkgu?= | last post by:
How to get search engines crawl data I have a web application that uses user controls and pulls data directly from database and shows it to users in the internet. So there is not html that has the data, if I need to get Google or other search engines to crawl these pages, what are my options?
5
6660
by: abhi3211 | last post by:
i am using java inside java script page. in that page i want to use two dropdown list. in first dropdown list i am getting data from ms-access database. in second dropdown list i want to get data according to selection made in first dropdown list and it will also come from ms-access database.(for example if i am selecting country as india in first dropdown list then in second dropdown list will show states of india) the problem is that i...
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.