Skip to content

Instantly share code, notes, and snippets.


Fernando fernandog

View GitHub Profile
from bs4 import BeautifulSoup, FeatureNotFound
import urllib, sys
from lxml import etree
print("%-20s: %s" % ('Python', sys.version_info))
print("%-20s: %s" % ('lxml.etree', etree.LXML_VERSION))
print("%-20s: %s" % ('libxml used', etree.LIBXML_VERSION))
print("%-20s: %s" % ('libxml compiled', etree.LIBXML_COMPILED_VERSION))
print("%-20s: %s" % ('libxslt used', etree.LIBXSLT_VERSION))
print("%-20s: %s" % ('libxslt compiled', etree.LIBXSLT_COMPILED_VERSION))
View addic7ed.html
This file has been truncated, but you can view the full file.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<script src=""></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Browse by shows</title>
<link href="" rel="stylesheet" title="default" type="text/css" />
<script type="text/javascript">
function changeAppLang()
View gist:90bd4edce887e0c56bf3f4365c6ebfa2
#!/usr/bin/env python
# Authork:
import os
# Read value from vcgencmd
_throttled = os.popen('vcgencmd get_throttled').read()
# Turn into list at return
_throttled = _throttled.split("\n")
View gist:2ae9df6d80131e215e6b5ba2c0ca11ff
19:04:10 INFO::SNATCHQUEUE-MANUALSNATCH-305288 :: [f3ebd83] Adding Stranger Things S01E06 to Trakt watchlist
19:04:10 ERROR::SNATCHQUEUE-MANUALSNATCH-305288 :: [f3ebd83] Unknown Trakt request exception. Code error: None
Traceback (most recent call last):
File "/home/osmc/SickRage/lib/traktor/", line 113, in request
data=data, verify=self.ssl_verify)
File "/home/osmc/SickRage/lib/requests/", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/home/osmc/SickRage/lib/requests/", line 585, in send
r = adapter.send(request, **kwargs)
File "/home/osmc/SickRage/lib/requests/", line 467, in send