Skip to content

Instantly share code, notes, and snippets.

View jhaubrich's full-sized avatar

Jesse Haubrich jhaubrich

View GitHub Profile
@jhaubrich
jhaubrich / zillow.py
Created January 15, 2021 17:52 — forked from scrapehero/zillow.py
Python 3 script to find real estate listings of properties up for sale on zillow.com
from lxml import html
import requests
import unicodecsv as csv
import argparse
import json
def clean(text):
if text:
return ' '.join(' '.join(text).split())

after staging update

2020-10-17 00:05:56,870 [ERROR]: 500 for http://staging.legend-es.com/api/v0/form/save-sensor-data with RESPONSE TEXT 'class java.lang.NullPointerException is not understandable' HEADERS {'Server': 'nginx/1.10.3 (Ubuntu)', 'Date': 'Fri, 16 Oct 2020 23:05:54 GMT', 'Content-Length': '58', 'Connection': 'keep-alive'} REQUEST HEADERS {'User-Agent': 'python-requests/2.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Authorization': 'Basic bGVnZW5kOnRoaW5rbGVnZW5k', 'Content-Length': '3926', 'Content-Type': 'multipart/form-data; boundary=5a6ccd89e2efeaf7643a49a1c382e367'} in /home/pi/legend-pi/hub.py:203

inexplicable

2020-10-16 22:43:41,236 [ERROR]: 500 for http://live.legend-es.com/api/v0/form/save-sensor-data with RESPONSE TEXT 'class java.lang.IllegalArgumentException is not understandable' HEADERS {'Server': 'nginx/1.10.3 (Ubuntu)', 'Date': 'Fri, 16 Oct 2020 21:43:40 GMT', 'Content-Length': '62', 'Connection': 'keep-alive'} REQUEST H

2020-09-18 15:47:53,170 [ERROR]: Exception on /sensor_data [POST] in /home/pi/.local/share/virtualenvs/legend-pi-TYVSjA2W/lib/python3.7/site-packages/flask/app.py:1892
Traceback (most recent call last):
File "/home/pi/.local/share/virtualenvs/legend-pi-TYVSjA2W/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/home/pi/.local/share/virtualenvs/legend-pi-TYVSjA2W/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/pi/.local/share/virtualenvs/legend-pi-TYVSjA2W/lib/python3.7/site-packages/flask_restplus/api.py", line 325, in wrapper
resp = resource(*args, **kwargs)
File "/home/pi/.local/share/virtualenvs/legend-pi-TYVSjA2W/lib/python3.7/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
@jhaubrich
jhaubrich / hub.json
Created December 18, 2019 16:53
goodson rover
{
"id": "0f49b74c-2780-48ec-8b25-a0593a873054"
}
@jhaubrich
jhaubrich / hub.json
Created December 6, 2019 16:32
Lab Test Box hub and spoke config
{
"id": "186b7e2e-78b2-450d-835a-75421def1026"
}
@jhaubrich
jhaubrich / rojas.json
Last active December 5, 2019 18:11
Rojas Generator
{
"id": "9df0902c-20f3-4954-86d6-52ecf8e6521e",
"name": "rojas Spoke",
"config": {
"0": {
"resource/created-at": "2019-11-26T18:40:50.906Z",
"sensor/serial": "0604398185",
"sensor/config": {
"sample-rate": 44100,
"sensitivity": "0.6262080627879434"
@jhaubrich
jhaubrich / hub.json
Created November 27, 2019 18:31
Goodson's Hub and Spoke
{
"id": "eb4f7f36-d374-4fe5-a45a-a6ff0c7648c9"
}
@jhaubrich
jhaubrich / hub.json
Created November 26, 2019 20:57
Jesse's Lab
{
"id": "06ac36e9-cb9c-442d-a2cf-ce71b761d890"
}
@jhaubrich
jhaubrich / cloudSettings
Last active August 8, 2019 20:58
vscode config
{"lastUpload":"2019-08-08T20:58:08.037Z","extensionVersion":"v3.4.1"}
#!/bin/bash -ex
#
# Use `reflector` to update `/etc/pacman.d/mirrorlist` and sort by download rate
#
wget -O /etc/pacman.d/mirrorlist.backup https://www.archlinux.org/mirrorlist/all/ && cp /etc/pacman.d/mirrorlist.backup /etc/pacman.d/mirrorlist && reflector --verbose --country 'United States' -l 200 -p http --sort rate --save /etc/pacman.d/mirrorlist