Answer the question
In order to leave comments, you need to log in
Extract information from a string?
There is a line:
[<div class="profile_online_lv">заходил сегодня в 11:05</div>]
Answer the question
In order to leave comments, you need to log in
If the question concerns only color. You need a module like Options Image.
If you want to implement the functionality, as in the first example, you can use the related options module as a basis.
You can describe the desired functionality to the author of these modules, he will tell you which of the modules are best suited. And then there are simple and PRO versions.
from lxml import etree
a = '[<div class="profile_online_lv">заходил сегодня в 11:05</div>]'
root = etree.fromstring(a[1:-1])
print(root.text)
# заходил сегодня в 11:05
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question