Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from bs4 import BeautifulSoup
- data= """<div id="filemanager-5adc3f37d4226" class="filemanager fm-loaded fm-nofiles fm-noitems">"""
- soup = BeautifulSoup(data)
- for tag in soup.find_all("div", class_="filemanager fm-loaded fm-nofiles fm-noitems") :
- id= tag.get('id')
- token= id[-13:]
- print token
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement