libc_database 库文件下载

libc_database自带的.get更新太慢。写了个爬虫从https://libc.blukat.me/?q=_rtld_global%3A0上下载so文件,将下载的so文件放在./add *.so 进行添加到库
#!C:\Python3.7
# -*- coding:utf-8 -*-
from selenium import webdriver
import requests
from fake_useragent import UserAgent
import os


def libc_spider(url):
    basepath = os.getcwd()
    path = os.path.join(basepath,'libc')
    if not os.path.exists(path):
        os.mkdir(path)
    option = webdriver.ChromeOptions()
    option.add_argument('headless')
    drive_path = 'C:\Program Files (x86)\Google\Chrome\Application\chromedriver'
    driver = webdriver.Chrome(executable_path=drive_path,chrome_options=option)
    baseurl = "https://libc.blukat.me/d/"
    try:
        driver.get(url)
        #print(driver.page_source)
        elements = driver.find_elements_by_xpath('//div[@class="panel-body"]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值