mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-17 23:16:51 +00:00
Merge branch 'master' of github.com:hillerliao/RSSHub-python
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -16,4 +16,7 @@ venv
|
|||||||
htmlcov/
|
htmlcov/
|
||||||
data-dev.db
|
data-dev.db
|
||||||
|
|
||||||
.env
|
.env
|
||||||
|
uwsgi.ini
|
||||||
|
Dockerfile
|
||||||
|
.dockerignore
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from rsshub.utils import DEFAULT_HEADERS
|
from rsshub.utils import DEFAULT_HEADERS
|
||||||
from rsshub.utils import fetch
|
from rsshub.utils import fetch
|
||||||
|
|
||||||
domain = 'https://www.benzinga.com/'
|
domain = 'https://www.benzinga.com'
|
||||||
|
|
||||||
def ctx(category=''):
|
def ctx(category=''):
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
from rsshub.utils import fetch
|
from rsshub.utils import fetch
|
||||||
|
from rsshub.utils import DEFAULT_HEADERS
|
||||||
|
|
||||||
domain = 'https://www.chaindd.com'
|
domain = 'https://www.chaindd.com'
|
||||||
|
|
||||||
@@ -13,6 +14,7 @@ def parse(post):
|
|||||||
|
|
||||||
|
|
||||||
def ctx(category=''):
|
def ctx(category=''):
|
||||||
|
DEFAULT_HEADERS.update({'Referer': f'https://www.chaindd.com/column/{category}'})
|
||||||
tree = fetch(f"{domain}/column/{category}")
|
tree = fetch(f"{domain}/column/{category}")
|
||||||
posts = tree.css('li .cont')
|
posts = tree.css('li .cont')
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user