Commit 91cf4c2d authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Remove

parent fcfe47f8
requests
BeautifulSoup4
\ No newline at end of file
import requests
import sys
from bs4 import BeautifulSoup
url = sys.argv[1]
content = sys.argv[2]
page = BeautifulSoup(requests.get(url).text, 'html.parser')
if not page.title.text == content:
print(f"Wrong title: '{page.title.text}' should be '{content}'")
exit(1)
if not page.h1.text == content:
print(f"Wrong h1: '{page.h1.text}' should be '{content}'")
exit(1)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment