add producthunt search

This commit is contained in:
hillerliao
2022-03-31 10:46:19 +08:00
parent 6b034dd3e2
commit 486ca65885
4 changed files with 50 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ def ctx(category=''):
url = f"{domain}/realtime/{category}"
tree = fetch(url,headers=DEFAULT_HEADERS)
posts = tree.css('.col-lg-4.col-12.list-block.no-gutters')
print(posts)
# print(posts)
return {
'title': f'{category} - 早报网即时新闻',
'link': url,