Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_data(html):
- soup = BeautifulSoup(html, 'lxml')
- item_datetime=soup.find('meta',{'itemprop':'dateCreated'})
- item_datetime=dateparser.parse(item_datetime,date_formats=['%d %B %Y %H'])
- print(item_datetime)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement