Created
July 29, 2019 21:03
-
-
Save kjaymiller/8a7967a9220841045631e9fdef71e447 to your computer and use it in GitHub Desktop.
Shownoter - Get Title by URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from requests_html import HTMLSession | |
import sys | |
url = sys.argv[1] | |
session = HTMLSession().get(url, verify=False) | |
session.html.render() | |
sys.stdout.write(session.html.find('title', first=True).text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment