Skip to content

Instantly share code, notes, and snippets.

View godwhoa's full-sized avatar
🙃
no time

Joseph Daniel godwhoa

🙃
no time
  • India
  • 14:03 (UTC +05:30)
View GitHub Profile
@godwhoa
godwhoa / main.py
Last active May 17, 2019 11:18 — forked from sairoopb/main.py
def get_html_array(js_url):
response = requests.get(js_url)
# Apply capture logic
start = response.text.find("var html = [") + len("var html = [") - 1 # this will get us the index of [
end = response.text.find(".join('\n')")
raw_js_array = response.text[start:end]
# really not sure whats going on down here..
json_file = []
for data in range(result+12,end-1):
json_file.append(data)