473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Web crawler

Does anyone have any tips/tutorials on how to write a web crawler using C?

On that note, is C a "good" language to use for a web crawler?

-O
Jan 11 '07 #1
5 5211

Oscarian wrote:
Does anyone have any tips/tutorials on how to write a web crawler using C?
If you have to ask, you're probably not ready to do it.
On that note, is C a "good" language to use for a web crawler?
What do you mean by "good"? It wouldn't be my first choice. Other
languages probably provide more infrastructure for the job "out of the
box".

Jan 11 '07 #2
On Thu, 11 Jan 2007 01:09:17 -0800, mark_bluemel wrote:
If you have to ask, you're probably not ready to do it.
Indeed, but I enjoy having goals, even if it is a long term goal.
>On that note, is C a "good" language to use for a web crawler?

What do you mean by "good"? It wouldn't be my first choice. Other
languages probably provide more infrastructure for the job "out of the
box".

"Good", as in "providing best efficiency". I guess.

-O
Jan 11 '07 #3
Oscarian said:
On Thu, 11 Jan 2007 01:09:17 -0800, mark_bluemel wrote:
>If you have to ask, you're probably not ready to do it.

Indeed, but I enjoy having goals, even if it is a long term goal.
>>On that note, is C a "good" language to use for a web crawler?

What do you mean by "good"? It wouldn't be my first choice. Other
languages probably provide more infrastructure for the job "out of the
box".


"Good", as in "providing best efficiency". I guess.
Language isn't the efficiency bottleneck with Internet applications. The
Internet is!

Any language that can do the job is a good language. Sort them in order of
your preference. If you would rather write this in SNOBOL++, then write it
in SNOBOL++. If you'd rather write it in Perl, write it in Perl. If you'd
rather write it in C, write it in C. And if you'd rather write it in MS-DOS
batch script, you're a braver man than me!

Different languages exist because not everybody thinks the same way. You
have a choice. Use it. Don't let others dictate it.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jan 11 '07 #4

Oscarian wrote:
On Thu, 11 Jan 2007 01:09:17 -0800, mark_bluemel wrote:
If you have to ask, you're probably not ready to do it.

Indeed, but I enjoy having goals, even if it is a long term goal.
Fine, but if you want to research writing a Web Crawler, asking on a C
language newsgroup is probably not the best starting point.
<Off-topic>

The principle is fairly simple:-
1. Make a list of URLs
2. Access the next URL from the list
3. Find any links in the URL, add them to your list, discarding
duplicates
4. Go to 2

What language would you find it easiest to do this in? As I've already
stated, I probably wouldn't choose C - as I work with Java regularly, I
might choose that (out of the box, it has useful classes for accessing
URLs, maintaining lists, etc), or I might use a scripting language such
as Python or even Perl. As Richard has pointed out, the choice of
language is unlikely to have a huge impact on performance.

There is a discussion of WebCrawlers on Wikipedia, with links to a
variety of implementations in a range of languages. Entering "writing a
webcrawler" into Google leads to an assortment of papers, tutorials
etc.
</Off-topic>

Jan 11 '07 #5
<Off Topic>

Thanks guys, I will do some playful stuff and once I have learned enough I
will plug away at doing something like a web crawler.

On Thu, 11 Jan 2007 09:52:37 +0000, Richard Heathfield wrote:
Different languages exist because not everybody thinks the same way. You
have a choice. Use it. Don't let others dictate it.
Richard, you sound like an old hacker trying to open the minds of us
inexperienced guys. Thanks for the encouragement.

On Thu, 11 Jan 2007 02:24:32 -0800, mark_bluemel wrote:
There is a discussion of WebCrawlers on Wikipedia, with links to a
variety of implementations in a range of languages. Entering "writing a
webcrawler" into Google leads to an assortment of papers, tutorials
etc.
I know, I did a search and read the wiki page and also looked at the
google results. None of them mentioned C, which is why I posted to the
group. I'll dig through the tutorials in Java and see if I can come up
with some psuedocode to do the same thing in C.

Thanks though.

Cheers-
O
</Off-topic>
Jan 12 '07 #6

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

Similar topics

2
by: Gomez | last post by:
Hi, Is there a way to know if a session on my web server is from an actual user or an automated crawler. please advise. G
1
by: Benjamin Lefevre | last post by:
I am currently developping a web crawler, mainly crawling mobile page (wml, mobile xhtml) but not only (also html/xml/...), and I ask myself which speed I can reach. This crawler is developped in...
1
by: Steve Ocsic | last post by:
Hi, I've coded a basic crawler where by you enter the URL and it will then crawl the said URL. What I would like to do now is to take it one step further and do the following: 1. pick up the...
0
by: Nicolas | last post by:
I need HELP!!!!! The crawler (Google or other) don't index my web site unless the web site is currently visited If there is nobody visiting those .aspx page therefor activating the aspnet no...
3
by: Bill | last post by:
Has anyone used/tested Request.Browser.Crawler ? Is it reliable, or are there false positives/negatives? Thanks!
13
by: abhinav | last post by:
Hi guys.I have to implement a topical crawler as a part of my project.What language should i implement C or Python?Python though has fast development cycle but my concern is speed also.I want to...
3
by: Charles Zhang | last post by:
How can I get Request.Browser.Crawler to work correctly? Do I need to update <browserCapssection of the web configuration file? If yes, where can I find something that cover all browsers and...
3
by: mh121 | last post by:
I am trying to write a web crawler (for academic research purposes) that grabs the number of links different websites/domain names have from other websites, as listed on Google (for example, to get...
0
by: kishorealla | last post by:
Hello I need to create a web bot/crawler/spider that would go into different web sites and collect data for us and store in a database. The crawler needs to 'READ' the options on a website (either...
4
by: sonich | last post by:
I need simple web crawler, I found Ruya, but it's seems not currently maintained. Does anybody know good web crawler on python or with python interface?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.