By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,743 Members | 1,122 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,743 IT Pros & Developers. It's quick & easy.

Web crawler

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a

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

P: n/a
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

P: n/a
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

P: n/a

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

P: n/a
<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 discussion thread is closed

Replies have been disabled for this discussion.