java - Using a webcrawler to fetch data
问题描述
I would like to create website which quizzes people on animal facts, I could do it manually, but I am wondering how I would go about automating the 'retrieval of facts' from the internet and then inputting it into the quizzes automaticallly. I'm thinking, I could build a web crawler/scraper that collects parts of information from popular sites, and then sends that data to the site, to make the quiz.
How would you go about solving this issue, and if there is a better way of achieving the same think?
PS: I am a beginner, and I might not be using the right terminology
解决方案
Look up Selenium. It is my favorite library for python. It can log into sites, click on certain elements, and you can get data very easily.
Use pip install selenium to download
推荐阅读
- dialogflow-es - 如何在谷歌助手上部署一个可以拨打号码的 Dialogflow 机器人?
- xml - Powershell在多个节点中插入相同的属性
- linux - 如何列出最后安装的软件包名称?
- azure - 在 Azure Terraform 中,如何从 .iso 文件创建 VM
- python - ansible Jinja2 模板正则表达式搜索并找到返回字符串
- android - Kotlin Coroutines,无法将信息设置为 recyclerView
- java - Java LinkedList: uses both List and Queue interface?
- discord - “代码块”框问题中的不和谐格式
- python - 如何接收子小部件的悬停事件?
- mysql - 尝试转储数据库时出现错误 2 或“拒绝访问”