Skip to content

Instantly share code, notes, and snippets.

View simeonmiteff's full-sized avatar

Simeon Miteff simeonmiteff

View GitHub Profile
#!/usr/bin/env python3
from bs4 import BeautifulSoup
import urllib.request
def scrape_update(url):
with urllib.request.urlopen(url) as response:
html_doc = response.read()
soup = BeautifulSoup(html_doc, 'html.parser')
# Not sure how stable indexing into the divs will be
div = soup.find_all(class_="elementor-widget-container")[9]

Keybase proof

I hereby claim:

  • I am simeonmiteff on github.
  • I am simeonmiteff (https://keybase.io/simeonmiteff) on keybase.
  • I have a public key ASBVSI1xtVo5hp4g202boWbgBd3qhehL-R_y0-Y23-B6mAo

To claim this, I am signing this object:

@simeonmiteff
simeonmiteff / tunetest.py
Created September 27, 2012 07:29
Simple rtl_tcp client to test rapid tuning
#! /usr/bin/env python2
# Small test client for rtl_tcp
# Simeon Miteff <[email protected]>
# Thu Sep 27 09:28:55 SAST 2012
import socket
import struct
import time
SET_FREQUENCY = 0x01
SET_SAMPLERATE = 0x02
@simeonmiteff
simeonmiteff / rtl-sdr-add-compro-videomate.diff
Created April 11, 2012 21:41
rtl-sdr: Add USB id for Compro Videomate U620F
--- rtl-sdr-orig/src/rtl-sdr.c 2012-04-11 23:26:05.755451224 +0200
+++ rtl-sdr/src/rtl-sdr.c 2012-04-11 23:36:32.075459494 +0200
@@ -123,6 +123,7 @@
{ 0x0ccd, 0x00a9, "Terratec Cinergy T Stick Black (rev 1)" },
{ 0x0ccd, 0x00b3, "Terratec NOXON DAB/DAB+ USB dongle (rev 1)" },
{ 0x0ccd, 0x00e0, "Terratec NOXON DAB/DAB+ USB dongle (rev 2)" },
+ { 0x185b, 0x0620, "Compro Videomate U620F"},
{ 0x1f4d, 0xb803, "GTek T803" },
{ 0x1f4d, 0xc803, "Lifeview LV5TDeluxe" },
{ 0x1b80, 0xd3a4, "Twintech UT-40" },