R Web Scraping Quick Start Guide: Techniques and tools to crawl and scrape data from websites
Olgun Aydin
- 出版商: Packt Publishing
- 出版日期: 2018-10-31
- 售價: $1,440
- 貴賓價: 9.5 折 $1,368
- 語言: 英文
- 頁數: 114
- 裝訂: Paperback
- ISBN: 1789138736
- ISBN-13: 9781789138733
-
相關分類:
R 語言、Web-crawler 網路爬蟲
海外代購書籍(需單獨結帳)
相關主題
商品描述
Web Scraping techniques are getting more popular, since data is as valuable as oil in 21st century. Through this book get some key knowledge about using XPath, regEX; web scraping libraries for R like rvest and RSelenium technologies.
Key Features
- Techniques, tools and frameworks for web scraping with R
- Scrape data effortlessly from a variety of websites
- Learn how to selectively choose the data to scrape, and build your dataset
Book Description
Web scraping is a technique to extract data from websites. It simulates the behavior of a website user to turn the website itself into a web service to retrieve or introduce new data. This book gives you all you need to get started with scraping web pages using R programming.
You will learn about the rules of RegEx and Xpath, key components for scraping website data. We will show you web scraping techniques, methodologies, and frameworks. With this book's guidance, you will become comfortable with the tools to write and test RegEx and XPath rules.
We will focus on examples of dynamic websites for scraping data and how to implement the techniques learned. You will learn how to collect URLs and then create XPath rules for your first web scraping script using rvest library. From the data you collect, you will be able to calculate the statistics and create R plots to visualize them.
Finally, you will discover how to use Selenium drivers with R for more sophisticated scraping. You will create AWS instances and use R to connect a PostgreSQL database hosted on AWS. By the end of the book, you will be sufficiently confident to create end-to-end web scraping systems using R.
What you will learn
- Write and create regEX rules
- Write XPath rules to query your data
- Learn how web scraping methods work
- Use rvest to crawl web pages
- Store data retrieved from the web
- Learn the key uses of Rselenium to scrape data
Who this book is for
This book is for R programmers who want to get started quickly with web scraping, as well as data analysts who want to learn scraping using R. Basic knowledge of R is all you need to get started with this book.
Table of Contents
- Introduction to Web Scraping
- XML Path Language and Regular Expression Language
- Web Scraping with rvest
- Web Scraping with Rselenium
- Storing Data and Creating Cronjob
商品描述(中文翻譯)
網頁爬蟲技術在21世紀越來越受歡迎,因為數據就像石油一樣有價值。通過這本書,您可以獲得有關使用XPath、正則表達式以及R語言中的網頁爬蟲庫(如rvest和RSelenium技術)的關鍵知識。
主要特點:
- 使用R進行網頁爬蟲的技巧、工具和框架
- 輕鬆從各種網站上爬取數據
- 學習如何選擇要爬取的數據,並建立您的數據集
書籍描述:
網頁爬蟲是一種從網站中提取數據的技術。它模擬網站用戶的行為,將網站本身轉化為一個網絡服務,以檢索或引入新的數據。本書將為您提供使用R編程開始網頁爬蟲的所有必要知識。
您將學習正則表達式和XPath的規則,這是爬取網站數據的關鍵組件。我們將向您展示網頁爬蟲的技巧、方法和框架。在本書的指導下,您將熟悉編寫和測試正則表達式和XPath規則的工具。
我們將重點介紹動態網站的爬取數據示例以及如何實施所學技術。您將學習如何收集URL,然後使用rvest庫創建XPath規則,編寫您的第一個網頁爬蟲腳本。通過收集的數據,您將能夠計算統計數據並創建R圖表進行可視化。
最後,您將了解如何使用R和Selenium驅動程序進行更複雜的爬取。您將創建AWS實例並使用R連接在AWS上托管的PostgreSQL數據庫。通過本書的學習,您將足夠自信地使用R創建端到端的網頁爬蟲系統。
您將學到:
- 編寫和創建正則表達式規則
- 編寫XPath規則以查詢數據
- 學習網頁爬蟲方法的工作原理
- 使用rvest爬取網頁
- 存儲從網絡檢索的數據
- 學習使用Rselenium爬取數據的關鍵用途
本書適合R程式設計師快速入門網頁爬蟲,以及想要使用R進行爬取的數據分析師。只需基本的R知識,您就可以開始閱讀本書。
目錄:
1. 網頁爬蟲介紹
2. XML Path Language和正則表達式語言
3. 使用rvest進行網頁爬蟲
4. 使用Rselenium進行網頁爬蟲
5. 數據存儲和創建定時任務