Skip to content

Instantly share code, notes, and snippets.

View kilianplapp's full-sized avatar
👋

Kilian kilianplapp

👋
  • Dublin, Ireland
View GitHub Profile
@kilianplapp
kilianplapp / scrape.py
Created November 29, 2022 20:21
Scrape 50 most recent pastes on PasteBin.com
import requests
from lxml import html
def getPastes():
for link in html.fromstring(requests.get("https://pastebin.com/archive").text).xpath('//tr//a'):
if str(link.get('href')).startswith('/archive/'): continue
yield (str(link.get('href')).replace('/', ''))
for i in getPastes():
print(i)

Keybase proof

I hereby claim:

  • I am kilianalias on github.
  • I am kilianplapp (https://keybase.io/kilianplapp) on keybase.
  • I have a public key ASDDt17olVCfDPZsTAMin3IEwDinlB1YGzfU22oHjy4Mpwo

To claim this, I am signing this object: