Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
R Web Scraping Quick Start Guide

You're reading from   R Web Scraping Quick Start Guide Techniques and tools to crawl and scrape data from websites

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789138733
Length 114 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Olgun Aydin Olgun Aydin
Author Profile Icon Olgun Aydin
Olgun Aydin
Arrow right icon
View More author details
Toc

Exercises on RegEx and XPath

In this part, we are going to do some exercises that will be about writing XPaths and RegEx rules. For this purpose, we will use some open source tools.

One of the best open source platforms for practising writing RegEx rules is https://regex101.com/:

Regular expressions on regex101.com

As you see from the screenshot of regex101.com, the following is true:

  • You can add some text strings to the Test String part and you can add your regular expressions to the Regular Expression part.
  • On the Test String part, you will be able to see the matched strings.
  • For testing your XPath rules, you can use Google Chrome's developer tools.
  • You can reach this menu through the More Tools section; click on those three dots on your Chrome browser, as shown in the following screenshot:
Developer tools option on the web page
  • When you click Developer tools, you...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime