Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. from bs4 import BeautifulSoup
  2.  
  3.  
  4. data= """<div id="filemanager-5adc3f37d4226" class="filemanager fm-loaded fm-nofiles fm-noitems">"""
  5.  
  6. soup = BeautifulSoup(data)
  7.  
  8. for tag in soup.find_all("div", class_="filemanager fm-loaded fm-nofiles fm-noitems") :
  9. id= tag.get('id')
  10. token= id[-13:]
  11. print token
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement