__author__ = 'richard' from bs4 import BeautifulSoup from demodata import getdata import json import gpxpy soup = BeautifulSoup(getdata()) #print soup.prettify() def fix_name(i): for z in (" :/"): i = i.replace(z,"_") return i t = soup.contents[3] body = t.body pc = soup.find_all("div",{"id":"page_content"}) jss = pc[0].find_all("script",{"type":"text/javascript"}) for a in jss:
def testDemoData(self): import demodata assert demodata.getdata()
def get_example(): return process(getdata())