G
G
Guerro692020-05-27 12:22:49
Python
Guerro69, 2020-05-27 12:22:49

Site parsing. How to enter a string?

I am writing my own program with which you can find out the date of registration of a user in VK.
I wrote a simple code that allows you to parse the text of the site, which can give information about registration in VK.

import re
import requests
from bs4 import BeautifulSoup as bs
import pandas as pd
URL_TEMPLATE = "https://regvk.com/"
r = requests.get(URL_TEMPLATE)
print(r.text)

But this is the first time I encounter parsing and I don’t know how to make it so that using Python to insert text on the site, is it the same as using the code to click on the buttons on the site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-05-27
@Guerro69

Yandex has a lot of JS there - you just can't parse it.
If you are interested in a translator, then take the API
. It's easier than delving into the nuances of parsing sites that are protected from parsing.
If it is parsing that is interesting, then selenium and other parsers working with JS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question