Posts

Showing posts from November, 2024

WEB SCRAPING WITH PYTHON: https://campus.datacamp.com/courses/web-scraping-with-python

Image
WEB SCRAPING WITH PYTHON:  https://campus.datacamp.com/courses/web-scraping-with-python Consider the HTML code: <html> <body> <div> <p>Good Luck!</p> <p>Not here...</p> </div> <div> <p>Where am I?</p> </div> </body> </html> It's Time to P In the lecture, we learned how to use double forward-slashes to navigate to all future generations. In this exercise, you will select all paragraph  p  elements within the HTML. Because we want you to navigate to  all  paragraph elements, it is not important that you know what the HTML code is, since the task can be accomplished with a simple XPath string using the  double forward-slash  notation you have learned. A classy span Although we haven't yet gone deep into XPath, one thing we can do is select elements by their attributes using an XPath. For example, if we want to direct to the  div ...