mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-18 15:09:34 +00:00
lightly init
This commit is contained in:
6
.lightly/settings.toml
Normal file
6
.lightly/settings.toml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
title = "lightly settings"
|
||||||
|
|
||||||
|
ports = []
|
||||||
|
|
||||||
|
[languages]
|
||||||
@@ -5,7 +5,7 @@ domain = 'http://www.bjnews.com.cn'
|
|||||||
|
|
||||||
def parse(post):
|
def parse(post):
|
||||||
item = {}
|
item = {}
|
||||||
item['description'] = item['title'] = post.css('a::text').extract_first()
|
item['description'] = item['title'] = post.css('a::text').extract_first()
|
||||||
item['link'] = post.css('a::attr(href)').extract_first()
|
item['link'] = post.css('a::attr(href)').extract_first()
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user