Please make sure that you read the ToS (Terms of Service) of the website before you web scrape any data. Most websites don't allows web scraping of their content. Some allow moderate use.

For Wikipedia:

4. Refraining from Certain Activities¶ Engaging in Disruptive and Illegal Misuse of Facilities¶ Engaging in automated uses of the site that are abusive or disruptive of the services and have not been approved by the Wikimedia community; Wikimedia Foundation Terms of Use¶

From my basic technical understanding:

This means "automated uses" like web scraping are not allowed if they are "abusive or disruptive of the services" but I would argue web scraping a single page is not "abusive or disruptive of the services". Web scraping will actually consume less servers time and bandwidth than reading the page in a browser. This is due to the fact that we will only request the page and none of the static files linked to it like CSS, images, javascript ... etc.

DISCLAIMERL: I'm not a lawyer