官术网_书友最值得收藏!

When is web scraping useful?

Suppose I have a shop selling shoes and want to keep track of my competitor's prices. I could go to my competitor's website each day and compare each shoe's price with my own; however this will take a lot of time and will not scale well if I sell thousands of shoes or need to check price changes frequently. Or maybe I just want to buy a shoe when it's on sale. I could come back and check the shoe website each day until I get lucky, but the shoe I want might not be on sale for months. These repetitive manual processes could instead be replaced with an automated solution using the web scraping techniques covered in this book.

In an ideal world, web scraping wouldn't be necessary and each website would provide an API to share data in a structured format. Indeed, some websites do provide APIs, but they typically restrict the data that is available and how frequently it can be accessed. Additionally, a website developer might change, remove, or restrict the backend API. In short, we cannot rely on APIs to access the online data we may want. Therefore we need to learn about web scraping techniques.

主站蜘蛛池模板: 舒城县| 屏南县| 县级市| 田东县| 疏附县| 保德县| 苏尼特右旗| 南康市| 惠东县| 呈贡县| 靖边县| 和硕县| 临桂县| 玉溪市| 隆回县| 鄂伦春自治旗| 潜山县| 太保市| 平利县| 南皮县| 开远市| 永清县| 理塘县| 牙克石市| 隆尧县| 聂荣县| 博兴县| 汝阳县| 西和县| 武夷山市| 雷州市| 鹿泉市| 岳池县| 巢湖市| 马尔康县| 肇源县| 德昌县| 类乌齐县| 乌拉特前旗| 乐山市| 沙坪坝区|