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

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.

主站蜘蛛池模板: 麻江县| 友谊县| 塘沽区| 叶城县| 象山县| 武陟县| 东海县| 无锡市| 平顺县| 安新县| 澄城县| 泗水县| 白银市| 板桥市| 龙海市| 朔州市| 建宁县| 遂宁市| 伊金霍洛旗| 新巴尔虎右旗| 博乐市| 克拉玛依市| 郎溪县| 枣庄市| 奉新县| 全州县| 寻甸| 邵阳县| 华容县| 进贤县| 南京市| 兴隆县| 卢龙县| 孟连| 无棣县| 磐安县| 东方市| 壶关县| 承德县| 灵山县| 潼南县|