A short & practical HOW-TO guide to scrape data from a website using Python by Félix Revert

(113 views)

Note to the reader: Python code is shared at the end This week I had to scrape a website for a client. I realized I did it so naturally and quickly that it would be useful to share it so you can master this art too. [Disclaimer: this article shows my practices of scraping, if you have more relevant practices please share it in the comments] The plan Pinpoint your target: a simple html website Design your scraping scheme in Python Run & let the magic operate How much time do you need to scrape a website? A practitioner would take ~10 minutes to prepare the Python script for a simple html website Part I: Finding your target (a website) In my case, I needed to gather the name of the Bank from SWIFT codes (or French BIC codes.) The website https://bank-code.net/country/FRANCE-%28FR%29.html has a list of 4000+ SWIFT codes with the associated....

March 13, 2019
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
© HAKIN9 MEDIA SP. Z O.O. SP. K. 2023
What certifications or qualifications do you hold?
Max. file size: 150 MB.
What level of experience should the ideal candidate have?
What certifications or qualifications are preferred?

Download Free eBook

Step 1 of 4

Name(Required)

We’re committed to your privacy. Hakin9 uses the information you provide to us to contact you about our relevant content, products, and services. You may unsubscribe from these communications at any time. For more information, check out our Privacy Policy.