Previous lecture recap


URL frontier: two main considerations


Download 0.54 Mb.
bet5/6
Sana25.01.2023
Hajmi0.54 Mb.
#1122127
1   2   3   4   5   6
Bog'liq
lecture16-crawling

URL frontier: two main considerations

  • Politeness: do not hit a web server too frequently
  • Freshness: crawl some pages more often than others
  • These goals may conflict each other.
  • (E.g., simple priority queue fails – many links out of a page go to its own site, creating a burst of accesses to that site.)
  • Sec. 20.2.3

Politeness – challenges

  • Even if we restrict only one thread to fetch from a host, can hit it repeatedly
  • Common heuristic: insert time gap between successive requests to a host that is >> time for most recent fetch from that host
  • Sec. 20.2.3

URL frontier: Mercator scheme

  • Back queue selector
  • Crawl thread requesting URL
  • Prioritizer
  • K front queues
  • URLs
  • Sec. 20.2.3

Mercator URL frontier

  • Sec. 20.2.3

Front queues

  • Prioritizer
  • 1
  • K
  • Biased front queue selector
  • Back queue router
  • Sec. 20.2.3

Front queues

  • Prioritizer assigns to URL an integer priority between 1 and K
  • Heuristics for assigning priority
    • Refresh rate sampled from previous crawls
    • Application-specific (e.g., “crawl news sites more often”)
  • Sec. 20.2.3

Download 0.54 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling