Skip to content

[WIP] Fix import error for BeautifulSoup module - #6

Draft
wuzhi456 with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-import-error-bs4
Draft

[WIP] Fix import error for BeautifulSoup module#6
wuzhi456 with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-import-error-bs4

Conversation

Copilot AI commented Mar 2, 2026

Copy link
Copy Markdown

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

from urllib.request import urlopen
from bs4 import BeautifulSoup

print(BeautifulSoup(urlopen("https://quotes.toscrape.com/"), 'html.parser').text) # .text 或 .get_text()

ModuleNotFoundError Traceback (most recent call last)
Cell In[2], line 2
1 from urllib.request import urlopen
----> 2 from bs4 import BeautifulSoup
4 print(BeautifulSoup(urlopen("https://quotes.toscrape.com/"), 'html.parser').text) # .text 或 .get_text()

ModuleNotFoundError: No module named 'bs4'


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants