Skip to content

Instantly share code, notes, and snippets.

View TheGodOfNoodles's full-sized avatar

TheGodOfNoodles

  • nerds.co.uk
  • your mums abode
  • 05:44 (UTC -12:00)
View GitHub Profile
@TheGodOfNoodles
TheGodOfNoodles / scraper.py
Created October 9, 2020 20:32 — forked from max-kov/scraper.py
dr frost maths python point farmer
import requests
from BeautifulSoup import BeautifulSoup
import dryscrape
import time
url = "http://www.drfrostmaths.com/homework/do-question.php?aaid=161230"
sess = dryscrape.Session()
sess.visit("http://www.drfrostmaths.com/homework/login.php")
name = sess.at_xpath('//*[@name="login-email"]') # Where <input name="username">
name.set("email here")