Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ•ΈοΈ Web Crawler πŸ•·οΈ

Hi everyone! πŸ‘‹
This is a Multi-Threaded Web Crawler written in Go! πŸ€“πŸš€

🧐 What does it do?

This program crawls the web like a spider πŸ•ΈοΈ:

  1. Starts with a website you give it πŸ–₯️.
  2. Finds all the links on the webpage πŸ”—.
  3. Recursively visits those links 🌐 (but only to a certain depth so it doesn't crawl forever! πŸ˜…).
  4. Shows you all the crawled URLs in the terminal! πŸ’»

πŸ“– Example Output

When you start the program, it might look like this in your terminal:

Starting web crawl at https://google.com with a depth of 2
Crawling: https://google.com (Depth: 2)
Crawling: https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://www.google.com/&ec=GAZAAQ (Depth: 1)
Crawling: https://www.youtube.com/?tab=w1 (Depth: 1)
Crawling: https://drive.google.com/?tab=wo (Depth: 1)
Crawling: https://www.google.com/imghp?hl=en&tab=wi (Depth: 1)
Crawling: https://news.google.com/?tab=wn (Depth: 1)
Crawling: https://maps.google.com/maps?hl=en&tab=wl (Depth: 1)
Crawling: https://play.google.com/?hl=en&tab=w8 (Depth: 1)
Crawling: https://www.google.com/intl/en/about/products?tab=wh (Depth: 1)
Crawling: https://mail.google.com/mail/?tab=wm (Depth: 1)
Crawling: http://www.google.com/history/optout?hl=en (Depth: 1)
Crawling completed.

Pretty cool, huh? 😎


πŸš€ How to run?

  1. Install Go: First, make sure you have Go installed πŸ› οΈ.

  2. Clone the repository:

    git clone https://github.com/Antot-12/Web-Crawler.git
    
  3. Navigate to the project folder:

    cd Web-Crawler
  4. Run it: Use this command:

    go run crawler.go
  5. Customize it: Change the startURL and maxDepth values in the code to crawl other websites or limit how deep it goes πŸ§—.


About

A multithreaded web crawler written in Go that recursively discovers and visits webpage links up to a configurable depth.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages