Advertisement
Le-Ownect

[ HABBO ] Web Scraping by Truck

May 4th, 2021
881
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. from urllib.request import urlopen
  2. from bs4 import BeautifulSoup
  3.  
  4. # By Truck (C) 2021
  5. page = urlopen("https://www.habbo.com.br/")
  6. ret = BeautifulSoup(page.read(),"html.parser")
  7. resposta = ret.body
  8. print(resposta)
  9.  
  10. filename = 'resposta.html'
  11. with open(filename, 'w') as file_object:
  12.     file_object.write("Extração HTML: </Br></Br> <textarea name='textarea' rows='20' cols='100'> " + str(resposta) + "</textarea></Br>")
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement