Q: Can I convert a #WordPress website into a simple table with two lines of #Python code?
A: Yes.
It’s better than crawling, because you get much more information this way. Takes a fraction of a fraction of the time.
Go to blog_url/wp-json/, if the website enabled it, you should see the content as a JSON string.
requests.get sends a GET request & the response object has a .json() method that converts JSON to a Python dict.
pandas.json_normalize unpacks it as a DataFrame.
Done.