Skip to content

Instantly share code, notes, and snippets.

View fernandog's full-sized avatar

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))
This file has been truncated, but you can view the full file.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="http://gitcdn.org/libs/bitcoinate/0.2.1/index.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Browse by shows</title>
<link href="http://www.addic7ed.com/css/wikisubtitles.css" rel="stylesheet" title="default" type="text/css" />
<script type="text/javascript">
function changeAppLang()
{
"210":{
"id":"210",
"pid":"0",
"name":"Film\/Vid\u00e9o",
"cats":{
"402":{
"id":"402",
"pid":"210",
"name":"Vid\u00e9o-clips"
#!/usr/bin/env python
# Authork: http://github.com/fernandog
import os
# Read value from vcgencmd
_throttled = os.popen('vcgencmd get_throttled').read()
# Turn into list at return
_throttled = _throttled.split("\n")
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/trakt.py", line 113, in request
data=data, verify=self.ssl_verify)
File "/home/osmc/SickRage/lib/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/home/osmc/SickRage/lib/requests/sessions.py", line 585, in send
r = adapter.send(request, **kwargs)
File "/home/osmc/SickRage/lib/requests/adapters.py", line 467, in send