This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
def check_diary_table_disabled(self, response): | |
""" | |
Parse #diary-table from HTML, and check for 'disabled' class | |
""" | |
html = BeautifulSoup(response.content, features="lxml") | |
diary_table = html.find('table', {'id': 'diary-table', }, recursive=True) | |
diary_table_attrs = diary_table.attrs | |
self.assertIn('class', diary_table_attrs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
''' | |
Author: Igor Maculan - n3wtron@gmail.com | |
A Simple mjpg stream http server | |
''' | |
import cv2 | |
import Image | |
import threading | |
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer | |
from SocketServer import ThreadingMixIn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: UTF-8 -*- | |
import signal | |
import sys | |
import traceback | |
import time | |
import logging | |
import json | |
import channels.layers | |
from asgiref.sync import async_to_sync | |
from channels.db import database_sync_to_async |