Generation

generate functionThu, 11 May 2023

Hazme un bot que scanee toda la página y busque llaves privadas de bitcoin con valor a 1 btc y al finalizar la busqueda me haga un archivo.txt y lo guarde en el dispositivo y que haga todas las certificaciones para no tener error la página es : https://lbc.cryptoguru.org/dio/

import requests from lxml import html response = requests.get('https://lbc.cryptoguru.org/dio/') tree = html.fromstring(response.content) # This will create a list of buyers: buyers = tree.xpath('//div[@title="Buyer name"]/text()') # This will create a list of prices prices = tree.xpath('//span[@class="item-price"]/text()') print ('Buyers: ', buyers) print ('Prices: ', prices)

Javascript
Generate More

Want to kickstart your project?Use the new AI Studio to create your code