R
R
rkfddf2020-05-28 18:32:36
Python
rkfddf, 2020-05-28 18:32:36

How to get a link from an element?

I hover over the element and see the link [email protected]
I look at the code and see

<<span class="email" itemprop="email">
<a href="mailto:%31%33%64%72%61%6b%6f%6e%31%39%36%[email protected]%67%6d%61%69%6c.%63%6f%6d">Отправить письмо</a>
</span>
, this is (percentage, number) and I get when parsing. What is it and how to get a human-readable link?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2020-05-28
@rkfddf

import urllib.parse

urllib.parse.unquote('mailto:%31%33%64%72%61%6b%6f%6e%31%39%36%[email protected]%67%6d%61%69%6c.%63%6f%6d')

'mailto:[email protected]'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question