How to scrape Global News Canada with AgentQL
Looking for a better way to scrape Global News Canada? Say goodbye to fragile XPath or DOM selectors that easily break with website updates. AI-powered AgentQL ensures consistent web scraping across various platforms, from Global News Canada to any other website, regardless of UI changes.
Not just for scraping Global News Canada
Smart selectors work anywhere
https://globalnews.ca
URL
Input any webpage.
{
article[] {
headline
date
summary
}
}
Query
Describe data in natural language.
{
"article": [
{
"headline": "Canada\u2019s inflation rate eases to 4.3% in March, Statistics Canada says",
"date": "April 20, 2023",
"summary": "Canada\u2019s annual inflation rate slowed to 4.3 per cent in March, down from 5.2 per cent in February, Statistics Canada reported Wednesday."
},
{
"headline": "Zelenskyy says Ukraine fighting to hold Bakhmut, warns Russia preparing another offensive",
"date": "April 20, 2023",
"summary": "Ukrainian President Volodymyr Zelenskyy said on Wednesday that fighting to hold the eastern city of Bakhmut is ongoing, and warned that Russia is preparing for another major offensive."
}
]
}
Returns
Receive accurate output in seconds.
How to use AgentQL on Global News Canada
1
Install the SDK
Install code for JS and Python
npm install agentql
pip3 install agentql
3
Run your script
Install code for both JS and Python
agentql init
python example.py
More Websites to Scrape
Get started
Holds no opinions on what’s and how’s. Build whatever makes sense to you.