chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More oceans
[ypp-sc-tools.db-live.git]
/
yarrg
/
yppedia-ocean-scraper
diff --git
a/yarrg/yppedia-ocean-scraper
b/yarrg/yppedia-ocean-scraper
index 30d0c4a8de8d895292879a074a6bf654ecdec4c5..a85403504aae52764a1a6d96f7202f6444c005ed 100755
(executable)
--- a/
yarrg/yppedia-ocean-scraper
+++ b/
yarrg/yppedia-ocean-scraper
@@
-89,13
+89,13
@@
def parse_chart():
debug('s',s)
s = regexp.sub(r'\<\;', '<', s)
s = regexp.sub(r'\>\;', '>', s)
debug('s',s)
s = regexp.sub(r'\<\;', '<', s)
s = regexp.sub(r'\>\;', '>', s)
+ s = regexp.sub(r'\"\;', '"', s)
s = regexp.sub(r'\&\;', '&', s)
debug('s',s)
return s
def parse_ocean():
s = regexp.sub(r'\&\;', '&', s)
debug('s',s)
return s
def parse_ocean():
- firstarch = soup.find('a', attrs = {'title': title_arch_ok})
- debug('fa',firstarch)
+ content = soup.find('div', attrs = {'id': 'content'})
def findall_title_arch_ok(t):
return t.findAll('a', attrs = {'title': title_arch_ok})
def findall_title_arch_ok(t):
return t.findAll('a', attrs = {'title': title_arch_ok})
@@
-104,7
+104,7
@@
def parse_ocean():
if u.name != 'table': return False
return len(findall_title_arch_ok(u)) > 1
if u.name != 'table': return False
return len(findall_title_arch_ok(u)) > 1
- archestable =
firstarch.findParent
('table', attrs={'border':'1'})
+ archestable =
content.findChild
('table', attrs={'border':'1'})
debug('at',archestable)
archsoups = []
debug('at',archestable)
archsoups = []