mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-23 14:44:21 +02:00
add sample input comment
This commit is contained in:
@@ -28,7 +28,7 @@ def check_dependencies():
|
|||||||
|
|
||||||
|
|
||||||
def parse_pocket_export(html):
|
def parse_pocket_export(html):
|
||||||
pattern = re.compile("^\\s*<li><a href=\"(.+)\" time_added=\"(\\d+)\" tags=\"(.*)\">(.+)</a></li>", re.UNICODE)
|
pattern = re.compile("^\\s*<li><a href=\"(.+)\" time_added=\"(\\d+)\" tags=\"(.*)\">(.+)</a></li>", re.UNICODE) # see sample input in ./example_ril_export.html
|
||||||
for line in html:
|
for line in html:
|
||||||
match = pattern.search(line)
|
match = pattern.search(line)
|
||||||
if match:
|
if match:
|
||||||
|
Reference in New Issue
Block a user