A crawler that sent a deleterequest to every resource it encountered

Source: Internet
Author: User

RESTful Web apis_2013

The crawler simulates a very curious but not very picky human. Give it a URL to Startwith, and it'll fetch a representation. Then it'll follow all the links it can find to getmore representations. It would do this recursively, until there is no more representations to be had. The Mapmaker client from earlier on this chapter are a kind of crawler for maze+xml documents. The spiders used by search engines is crawlers for HTML documents. It's quite difficult to write a crawler for an API that doesn ' t use hypermedia. But the can write a crawler for a hypermedia-based API without even understanding that API ' s linkrelations. Generally speaking, a crawler would only trigger the state transitions that is safe. Otherwise,there ' s  no  telling  what  will  happen  to  resource  state.  a  crawler  that  sent  a  DELETE request to every resource it encountered, just to see what Happ Ened, would be a terrible client.

A crawler that sent A deleterequest to every resource it encountered

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.