Guest User


a guest
Mar 30th, 2018
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. from bs4 import BeautifulSoup
  3. import re
  5. url = ''
  6. response = requests.get(url, verify=False)
  7. data = response.text
  8. #soup = BeautifulSoup(data, "html5lib")
  9. soup = BeautifulSoup(data, "lxml")
  10. # aqui você seleciona o que você quer recuperar
  11. r = soup.find("div",{'class':'the_content_wrapper'})
  12. p = r.find_all("p")
  13. # Aqui você itera em todos os páragrafos da agenda.
  14. for linha in p:
  15.      if linha.text.startswith("-"):
  16.          print(linha.text)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.