一、代码
import people_also_ask a = people_also_ask.get_related_questions("coffee") print(a)
二、成果
参考:
https://github.com/lagranges/people_also_ask
https://practicaldatascience.co.uk/data-science/how-to-scrape-people-also-ask-data-using-python
https://www.holisticseo.digital/python-seo/scrape-paa-questions/