Closed ErezDasa closed 1 year ago
my proposal for a parser:
def cactus():
stdlog('parser: ' + 'cactus')
parser = '''
grep -Po '<a .*? href=".*?/posts/.*?".*?</h2></a>' source/cactus-*.html | grep -Po '<h2.*?>(.*?)</h2>' | cut -d'>' -f2 | cut -d'<' -f1
'''
posts = runshellcmd(parser)
if len(posts) == 1:
errlog('cactus: ' + 'parsing fail')
for post in posts:
appender(post, 'cactus')
cactusbloguuodvqjmnzlwetjlpj6aggc6iocwhuupb47laukux7ckid.onion