You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I generated a free Gemini key and found that its use was restricted, but I could obtain the information using the example given on the official website.
example
fromscrapegraphai.graphsimportSmartScraperGraphfromscrapegraphai.nodesimportFetchNode# fetcher = FetchNode(# node_config={# "headless": False,# "endpoint": "http://192.168.166.8:7890",# }# )GOOGLE_APIKEY="xxxxxxxxxxxxxxxxxxxxxxxxx"# Define the configuration for the graphgraph_config= {
"llm": {
"api_key": GOOGLE_APIKEY,
"model": "gemini-pro",
},
}
# Create the SmartScraperGraph instancesmart_scraper_graph=SmartScraperGraph(
prompt="提取并列出新闻标题,与简单概述一下内容",
source="https://news.163.com/",
config=graph_config
)
result=smart_scraper_graph.run()
print(result)
Screenshots
Version 1.2.4
The text was updated successfully, but these errors were encountered:
Describe the bug
I generated a free Gemini key and found that its use was restricted, but I could obtain the information using the example given on the official website.
example
Screenshots
Version 1.2.4
The text was updated successfully, but these errors were encountered: