Sitemap
Yen Wang

Yen Wang

Curious mind. Interested in both creative and exploitative sides. More about me | https://www.yenwang.dev/

Python — Scraping

Want to recall the memory of Python easily?

May 8, 2023

--

Press enter or click to view image in full size

🔥Good Resources

🔸freeCodeCamp | How to Scrape Data From A Website
🔸realPython | Beautiful Soup: Build a Web Scraper With Python
🔸Github | Codes are here

Catalogue

  • installation
  • basics of bs4
  • Project — Hacker News

⚡Installation

Press enter or click to view image in full size
Press enter or click to view image in full size

⚡Requesting Data

Press enter or click to view image in full size
Press enter or click to view image in full size

⚡Basics of BS4

Doc of Beautiful Soup 4

🔸html parser

Press enter or click to view image in full size
Press enter or click to view image in full size

Get Yen Wang’s stories in your inbox

Join Medium for free to get updates from this writer.

🔸html parser

Press enter or click to view image in full size
Press enter or click to view image in full size

🔸soup.body

Press enter or click to view image in full size
Press enter or click to view image in full size

🔸soup.body.contents

Press enter or click to view image in full size
Press enter or click to view image in full size

🔸soup.find_all()

Press enter or click to view image in full size
Press enter or click to view image in full size

🔸soup.title

Press enter or click to view image in full size

🔸soup.a

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
This does the same thing.

⚡Hacker News

Code in Github

Press enter or click to view image in full size
Press enter or click to view image in full size

--

Yen Wang
Yen Wang

Written by Yen Wang

Curious mind. Interested in both creative and exploitative sides. More about me | https://www.yenwang.dev/