Skip to content

Update crawl_webpage.py #1815

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

newinnate
Copy link

The 'view_page_ element_to-scrape' function does not exist. This function has been refactored in MetaGPT v0.7+version, and web crawling related functions have been integrated into the scrape_web_playwright tool

##Function Change Record (Updated in 2025)
###Original function: view_page_element_to_scrape
**Last valid version * *: v0.6.3
**Function * *: Web page element visualization inspection tool
**Reason for abandonment * *: Function integration into Playwright toolchain

# old version(v0.6-)
from metagpt.tools.libs.web_scraping import view_page_element_to_scrape

# new version(v0.7+)
from metagpt.tools import scrape_web_playwright

# old define
async def main():
    di = DataInterpreter(tools=[tools=[view_page_element_to_scrape.__name__]])  

# new define
async def main():
    di = DataInterpreter(tools=["scrape_web_playwright"])  

The 'view_page_ element_to-scrape' function does not exist. This function has been refactored in MetaGPT v0.7+version,  and web crawling related functions have been integrated into the scrape_web_playwright tool
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.

1 participant