Skip to content

Instantly share code, notes, and snippets.

View HariharanUmapathi's full-sized avatar
🖥️
Feeding Curiositiy

Hariharan HariharanUmapathi

🖥️
Feeding Curiositiy
View GitHub Profile
@HariharanUmapathi
HariharanUmapathi / lwn_calendar_extract.py
Last active September 2, 2024 18:46
LWN Calendar data extraction
import requests
from lxml import html
import re
year = "2024"
month = "09"
response = requests.get(f'https://lwn.net/Calendar/Monthly/{year}-{month}/')
if response.status_code==200:
document_root =html.fromstring(response.content)