Last Updated on May 2, 2023 by mishou

I. Ask ChatGPT about how to scrape the headlines of the most-read stories

Copy the element on the web page.

Tell ChatGPT to show the Python code for scraping the most-read stories from the element.

Here is ChatGPT’s reply:

II. Run the Python code in Google Colaboratory

Here is the result in Google Colaboratory:

Now you can easily translate them into Japanese and export the table of English and Japanese to a CSV file. I opened it with LibreOffice:

You can see all the scripts here on Google Colaboratory:

By mishou

Leave a Reply

Your email address will not be published. Required fields are marked *