mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
[google+] fix more post_date
This commit is contained in:
parent
936383d092
commit
e8c7d9e6b2
@ -61,7 +61,7 @@ def google_download(url, output_dir = '.', merge = True, info_only = False, **kw
|
|||||||
if not real_urls:
|
if not real_urls:
|
||||||
real_urls = [r1(r'<meta property="og:image" content="([^"]+)', html)]
|
real_urls = [r1(r'<meta property="og:image" content="([^"]+)', html)]
|
||||||
real_urls = [re.sub(r'w\d+-h\d+-p', 's0', u) for u in real_urls]
|
real_urls = [re.sub(r'w\d+-h\d+-p', 's0', u) for u in real_urls]
|
||||||
post_date = r1(r'"?(20\d\d[-/][01]\d[-/][0123]\d)"?', html)
|
post_date = r1(r'"?(20\d\d[-/]?[01]\d[-/]?[0123]\d)"?', html)
|
||||||
post_id = r1(r'/posts/([^"]+)', html)
|
post_id = r1(r'/posts/([^"]+)', html)
|
||||||
title = post_date + "_" + post_id
|
title = post_date + "_" + post_id
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user