Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加看看新闻网epg #39

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update kankan.py
  • Loading branch information
blindlight86 committed Oct 26, 2023
commit a0b7d48231b86fd3bc4e7c16e05bad2be412f9b6
2 changes: 1 addition & 1 deletion crawl/spiders/kankan.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_channels_kankan(): # sourcery skip: avoid-builtin-shadow
res.encoding = 'utf-8'
soup = bs(res.text,'html.parser')
div_channels = soup.select('div.channel.item.cur > li')
for i, div_channel in enumerate(div_channels):
for div_channel in div_channels:
name = div_channel.p.text.strip()
id = ids[name]
channel = {
Expand Down