如何使用python开发爬行动物程序以从网站中获取数据并将数据保存在Excel中?

时间:2019-05-14 09:35:17

标签: python-3.x

网站如下,它是一个发布毒品信息的中文网站。

website

共有769项。而且我希望所有数据都在一个Excel中。

请注意,您可以输入开始和结束时间以查找所有药物的列表,但是必须单击药物名称才能进入另一个网站以获取足够的信息。

# the required field names are as follows:
a = c("批准文号/注册证号","药品名称剂型","规格","参比制剂","标准制剂","批准日期","上市许可持有人","生产厂商","上市销售状况","收录类别")

# the first names can be found from the first page of the website:
a1 = c("批准文号/注册证号","药品名称剂型","规格","参比制剂","标准制剂","批准日期","上市许可持有人")

# the last 3 names can only be found after you click drug names. 
a2 = c("生产厂商","上市销售状况","收录类别")

0 个答案:

没有答案