L
L
LevG0r2019-10-23 23:03:20
Python
LevG0r, 2019-10-23 23:03:20

What you need to know to write a simple parser in Python?

Hello, I try myself everywhere and recently decided to write a parser. I can write code in Python. Tell me, do I need to know in order to write it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Bobkov, 2019-10-24
@mike_bma

You need to know how to load what you will parse (file, web page).
And how to take from the received data what you need.

P
Pavel Zamyatin, 2019-10-24
@corw

This will be enough to get you started:

  1. Beatiful Soup
  2. Scrapy

R
r4khic, 2019-10-24
@r4khic

To begin with, you need to decide what you will parse. And build on this.
Initial libraries for parsing:
To get the html code of the page, the requests
library is well suited And after we have received the html code of the page, we can begin the process of filtering out the information we need thanks to the BeatifulSoup
library After we have filtered out our data, you can dispose of them as you want.
PS: Plus, you need to know the basics of html in order to know what data is stored in which tags and how best to pull it out

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question