Skip to content

Instantly share code, notes, and snippets.

View hudsonbrendon's full-sized avatar
🏠
Working from home

Hudson Brendon hudsonbrendon

🏠
Working from home
View GitHub Profile
{
"playlists": {
"rockerizando": {
"name": "Rockerizando",
"musics": {
"Imagine Dragons": "Radioactive",
"George Ezra": "Budapest",
"Of Mice Mean": "Broken Generation",
"AWOLNATION": "Sail",
"Alesana": "Apology"
{
"fantasy-name": "Restaurant fantasy name",
"company name": "Restaurant company name",
"logo": "Restaurant logo",
"CNPJ": "Restaurant CNPJ",
"phone": "Restaurant phone",
"telephone": "Restaurant telephone",
"website": "Restaurant website",
"category": [
"Fast Food",
@hudsonbrendon
hudsonbrendon / foods.py
Created September 20, 2016 13:12
Pesquisa de comidas
Food.objects.filter(establishment__in=Establishment.objects.filter(fantasy_name='Chiquita Bacana'))
{% extends "base.html" %}
{% load staticfiles %}
{% load widget_tweaks %}
{% block container %}
{% include "includes/menu.html" %}
{% endblock %}
# coding: utf-8
from selenium import webdriver
def get_itens():
firefox = webdriver.Firefox()
firefox.get('https://pt.aliexpress.com/w/wholesale-arduino.html?site=bra&initiative_id=SB_20170108224843&SearchText=arduino&g=y')
itens = firefox.find_elements_by_class_name('product')
prices = firefox.find_elements_by_class_name('price')
# coding: utf-8
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys
firefox = webdriver.Firefox()
firefox.get('https://www.facebook.com')
# coding: utf-8
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
firefox = webdriver.Firefox()
firefox.get('https://www.facebook.com')
email = firefox.find_element_by_name('email')
DEFAULT_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
THIRD_PARTY_APPS = [
# coding=utf-8
from __future__ import unicode_literals
from django.db import models
class Record(models.Model):
name = models.CharField(max_length=100)
class Meta:
# coding=utf-8
from django.test import TestCase
from model_mommy import mommy
from django.utils.timezone import datetime
from playlist.models import Record, Genre, Band, Music, Playlist