mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-14 15:09:23 +00:00
modify pgyer item url
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import re
|
||||
from rsshub.utils import DEFAULT_HEADERS
|
||||
from rsshub.utils import fetch
|
||||
|
||||
@@ -24,5 +25,7 @@ def parse(post):
|
||||
item['description'] = item['title'] + ';' \
|
||||
+ post.css('ul.breadcrumb > li::text').getall()[1] + ';' \
|
||||
+ post.css('ul.breadcrumb > li::text').getall()[2]
|
||||
item['link'] = post.css('img.qrcode').attrib['src']
|
||||
item['description'] = re.sub(r'\s|\n', '', item['description'])
|
||||
link = post.css('img.qrcode').attrib['src'].split('app/qrcode/')
|
||||
item['link'] = link[0] + link[1]
|
||||
return item
|
||||
@@ -381,6 +381,19 @@
|
||||
<br>
|
||||
<!--item info end-->
|
||||
|
||||
<!--item info start-->
|
||||
<div class="card text-left">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">蒲公英 - App 更新日志</h4>
|
||||
<h6 class="text-muted">蒲公英 - App 更新日志<a href="https://github.com/hillerliao" target="_blank" class="badge badge-secondary">by hillerliao</a></h6>
|
||||
<p class="card-text">举例:<a href="https://pyrsshub.herokuapp.com/pgyer/22bY" target="_blank">https://pyrsshub.herokuapp.com/pgyer/22bY</a></p>
|
||||
<p class="card-text">路由:<code>/pgyer/:pageid</code></p>
|
||||
<p class="card-text">pageid [必填, 页面 id]</p>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<!--item info end-->
|
||||
|
||||
<!--item info start-->
|
||||
<div class="card text-left">
|
||||
<div class="card-body">
|
||||
|
||||
Reference in New Issue
Block a user