如何输入URL并自动将数据从已定义的类中提取到数据库中[关闭]

I would like to record course information (Course Title, Summary, Price, etc...) from a course page on Udemy.com and push the information to a database. (For example: https://www.udemy.com/davinciediting/)

If possible I would like to just be able to write a script so that I can paste a Course URL and have the information fetched and recorded into a database automatically.

All the course pages have the same classes the the script would be looking for data contained in a specified class for each URL.

You can scrape the webpages you want with Python using the requests and BeautifulSoup.

And then you can add the data to a database, you may use an ORM like SQLAlchemy or peewee.