You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
287 B
Python
12 lines
287 B
Python
5 years ago
|
from bs4 import BeautifulSoup
|
||
|
from urllib.parse import quote as urlquote, unquote as urlunquote
|
||
|
|
||
|
file = open('tag_comparison.py', 'r')
|
||
|
x = 1
|
||
|
print(read)
|
||
|
|
||
|
with open(file, 'w') as new_html:
|
||
|
read = new_html.read()
|
||
|
html = BeautifulSoup(text, 'html.parser')
|
||
|
line = html.find('NN', 'span')
|