Check a Site
This feature has been disabled. If you want to test a site, use the following Python script:
|
import requests
url = input("URL to check: ")
if not url.endswith('/rss.xml'):
url += "/rss.xml"
r = requests.get(url)
patterns = [(b'<generator>https://getnikola.com/</generator>', 'Nikola v7.8.2+'),
(b'<generator>https://getnikola.com/</generator>', 'Nikola v7.6.1-v7.8.1'),
(b'<generator>http://getnikola.com/</generator>', 'Nikola v7.0.0-v7.6.0'),
(b'<generator>Nikola <http://getnikola.com/></generator>', 'Nikola v6.3.0-v6.4.0'),
(b'<generator>nikola</generator>', 'Nikola v6.2.1 or older')]
result = -1
for pattern, description in patterns:
if pattern in r.content:
print(description)
exit(0)
print("Not a Nikola site")
exit(1)
|