Rare weekend, I went to my friend Amu’s house to pull him out together, but found him still in front of the computer seems to be working hard. I was so surprised that I almost thought he had been abandoned by the object of his own imagination and obsessed with his work

! [this artifact can help you in National Day to choose more elegant hotel] (https://p6-tt.byteimg.com/origin/pgc-image/3e3bc1b36d594e78938bdd4cac4b883e?from=pc)

After chatting for a while, I learned that I was preparing for the National Day outing. I was collecting hotel information for data comparison and avoiding thunder as much as possible. I noticed that what he was basically doing was going to the website, selecting information, copying information, pasting it into an Excel spreadsheet, repeating, and then filtering at the end, which reminded me of a crawler that should have saved him a lot of work: the Web scraper

! [this artifact can help you in National Day to choose more elegant hotel] (https://p6-tt.byteimg.com/origin/pgc-image/d7d2b4dc67df42e092c55ae2ec0eec42?from=pc)

This is a Chrome extension, used for automatic crawling site data tools, you can crawl Taobao, Zhihu, Ali baba, Douban, Jane and so on website information, and basically do not need to use the code, even do not understand the procedure of xiaobai also a little practice can also use freely

! [this artifact can help you in National Day to choose more elegant hotel] (https://p6-tt.byteimg.com/origin/pgc-image/01e71c213cbc448da621cf5cb7dacb6a?from=pc)
! [this artifact can help you in National Day to choose more elegant hotel] (https://p1-tt.byteimg.com/origin/pgc-image/d1fb0cb1652741e28e7b9cc42ee77476?from=pc)

Of course, I said more magical operation is more simple, A mu also thought I was bragging, and did not have the patience to learn, so I decided to show him how to climb ctrip website hotel name, rating, housing prices and hotel contact information

! [this artifact can help you in National Day to choose more elegant hotel] (https://p6-tt.byteimg.com/origin/pgc-image/dcf1d3bfbf6e4528b9bc3668bd7b7381?from=pc)

First, the Web scraper plug-in is installed on Chrome.

If you can go to the Chrome App Store, search for “Web scraper” and click “Add to Chrome” to put it in your browser. If you can’t, you can either install a Google Assistant plug-in to go to the Google App Store, or you can get an offline CRX installation package, Zip it, unzip it, and load it into your browser. Once installed, you can see a spider web icon in the upper right corner

! [this artifact can help you in National Day to choose more elegant hotel] (https://p1-tt.byteimg.com/origin/pgc-image/a2f1a1bfd1414d36acc552f6d1f78952?from=pc)

Step 2, open the site and developer tools that you want to grab data from.

On the Ctrip site you want to climb, press F12 to open developer tools. The first opening may appear on the right side of the browser, so you can click the three small dots in the upper right corner to make it appear on the bottom

! [this artifact can help you in National Day to choose more elegant hotel] (https://p6-tt.byteimg.com/origin/pgc-image/cd7e46fcbb68430e92a9c7e8bdf15e9a?from=pc)

Third, set up the Sitemap on the Web Scraper on the developer tools

1, create new sitemap create sitemap

! [this artifact can help you in National Day to choose more elegant hotel] (https://p6-tt.byteimg.com/origin/pgc-image/983c9635097e465d98cbaa6d472b04b1?from=pc)

2. Please fill in a Sitemap name, including the Id name, for remarks only. Copy and paste the URL of the page into the Start URL and submit it

! [this artifact can help you in National Day to choose more elegant hotel] (https://p1-tt.byteimg.com/origin/pgc-image/c4907b1926a94f64b45777d84f6b2a30?from=pc)

3, I’m going to Add new Selector and I’m going to put in a random Id, and I’m going to call it home, just to recognize it

Select Element in Type.

Click Select, move your mouse over to one of the hotel areas, find a spot where the entire box turns red, and then move your mouse over to the next hotel and do the same.

After this time, you will find that all the hotels on the page have turned red, click Done selecting.

Check Multiple and commit to save.

! [this artifact can help you in National Day to choose more elegant hotel] (https://p3-tt.byteimg.com/origin/pgc-image/fc7ce7ea0c814d93920bf3c2c7ccfaab?from=pc)

5. The above step is equivalent to completing the form, and the next step is to put the information data into the form.

Click inside the home that you just created, and then Add New Selector to create a subset

! [this artifact can help you in National Day to choose more elegant hotel] (https://p1-tt.byteimg.com/origin/pgc-image/7a68651c9e1c46478f31c171b0cd24c5?from=pc)

Select Text for Type, select Multiple, select the Text you want to extract, and then save. Remember to set one by one, for example, after setting the parameters of the collection hotel name, click Add New Selector on the same page again to set the parameters of the collection price and save, collect several information to save several times.

! [this artifact can help you in National Day to choose more elegant hotel] (https://p1-tt.byteimg.com/origin/pgc-image/70e189b6fd3b4154b3c26d0b12718738?from=pc)

7. In this page, you can crawl to the hotel name (Id: hotel), grade (Id: Grade) and price (Id: price). But the contact information needs to click into the hotel to the secondary page to see, so you need to create a way to let it automatically open the page and then climb. The method is the same as above, but the Text in Type is changed to Link, and then saved for automatic opening of the secondary interface

! [this artifact can help you in National Day to choose more elegant hotel] (https://p1-tt.byteimg.com/origin/pgc-image/58ae23fa68d84f0385b43ecb8f8fe814?from=pc)

Eight points in a jump to the hotel details page, find the contact information, then we found that the contact details need to check it will display number, so we have to let it can also help us to click automatically, then can create two subsets in the link, click one for show contact, one for the climb take number

! [this artifact can help you in National Day to choose more elegant hotel] (https://p6-tt.byteimg.com/origin/pgc-image/23ebcb1eabaa4d818ff2a58844692b4c?from=pc)

9. On the contact page, click F12 “Web Scraper” xiecheng “home, click on the link, click Add New Selector, fill in the Id, Type, select Element click, Then, Select selectors and Click selectors together Select page contacts and Click Done Selectors. (You can also Click Data Preview to test if the numbers are displayed automatically.) Submit and save this for selecting contacts.

! [this artifact can help you in National Day to choose more elegant hotel] (https://p6-tt.byteimg.com/origin/pgc-image/8f47d7ee47db4e75ac4a938fe0a9a0ec?from=pc)

Click Add New Selector again to create one more subset that will be used to crawl the contact text, just as we did for the title above

! [this artifact can help you in National Day to choose more elegant hotel] (https://p1-tt.byteimg.com/origin/pgc-image/73fbd893c5ed45f2b6abdb592c41abe2?from=pc)
! [this artifact can help you in National Day to choose more elegant hotel] (https://p1-tt.byteimg.com/origin/pgc-image/574c41aa7678456daa2b4e39f92df073?from=pc)

Step 4, take what he says and start crawling

If you click Scrape in Sitemap Xiecheng, the default value of the popup page is 2000 and you can ignore it.

Request interval (ms) : the default value is 2000ms, which is the interval between two requests.

Page load delay (ms) : specifies the Page load delay time. The default value is 2000ms.

Broaching will pop up a window — don’t close the browser or the browser — and just wait for it to crawl and close

! [this artifact can help you in National Day to choose more elegant hotel] (https://p6-tt.byteimg.com/origin/pgc-image/70f37f23e27f44b88ec683ad30290998?from=pc)

When it’s done, it’ll pop out of the little window

! [this artifact can help you in National Day to choose more elegant hotel] (https://p1-tt.byteimg.com/origin/pgc-image/dbaa1ef222094d8faa8ed3a4c5b63b38?from=pc)

Step 5: Download it as a computer file and open it with excel

In Sitemap Xiecheng, click Export data as CSV and Download Now! At this point, it downloads it by itself. But on the computer, you can click on it and see that the data has been tabulated and can be filtered and compared

! [this artifact can help you in National Day to choose more elegant hotel] (https://p1-tt.byteimg.com/origin/pgc-image/f6abd13ce6ab4cab88c616d24bf8b2ba?from=pc)

This is only part of its functionality, there are many more ways to crawl information, very powerful. Wood is all kinds of dumbstruck, hurriedly tried, found that busy will be a morning of things, now a few minutes can be done by himself, he is angry ah, I hope he can screen to a good hotel, National Day crowded crowd can have a hotel to have a good rest

! [this artifact can help you in National Day to choose more elegant hotel] (https://p6-tt.byteimg.com/origin/pgc-image/c823c3c55f654d0ba7aa811caa6fc74a?from=pc)

I need an instructional video of the Web scraper or any questions