Grabbing text from a webpage

前端 未结 8 498
南旧
南旧 2021-01-03 09:54

I would like to write a program that will find bus stop times and update my personal webpage accordingly.

If I were to do this manually I would

  1. Visit
8条回答
  •  Happy的楠姐
    2021-01-03 10:37

    What you're asking about is called "web scraping." I'm sure if you google around you'll find some stuff, but the core notion is that you want to open a connection to the website, slurp in the HTML, parse it and identify the chunks you want.

    The Python Wiki has a good lot of stuff on this.

提交回复
热议问题