Exemple #1
0
__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:
Exemple #2
0
 def testDemoData(self):
     import demodata
     assert demodata.getdata()
Exemple #3
0
def get_example():
    return process(getdata())