Bank card number attribution query

Recently, when doing business analysis, it is necessary to process the attribution and type of a batch of bank cards.

I found a lot of interfaces on the Internet, all of which are charged or unavailable, and finally found a website that can be used: http://www.guabu.com/bank/

Bank card data can be queried in batches.

In the process of analyzing this webpage, I found that the webpage is extremely unstable and often cannot be opened, so I gave up the method of using request, directly used selenium, and added judgment conditions.

Directly on the code, simple and efficient.

# coding: utf-8
from selenium import webdriver  # 浏览器驱动器
from selenium.webdriver.common.by import By  # 定位器
from selenium.webdriver.support 

Guess you like

Origin blog.csdn.net/weixin_35770067/article/details/130540755