index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
3,714
mrpal39/ev_code
refs/heads/master
/awssam/ideablog/core/admin.py
from django.contrib import admin from .models import Products,feeds,MyModel,Post # Register your models here. admin.site.register(Products) admin.site.register(feeds) admin.site.register(MyModel) admin.site.register(Post)
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,715
mrpal39/ev_code
refs/heads/master
/awssam/django-blog/src/blog/admin.py
from django.contrib import admin # Register your models here. from blog.models import Tag, Article, Category @admin.register(Article) class ArticleAdmin(admin.ModelAdmin): date_hierarchy = 'date_time' list_display = ('title', 'category', 'author', 'date_time', 'view') list_filter = ('category', 'author...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,716
mrpal39/ev_code
refs/heads/master
/myapi/fullfeblog/blog/blog_tags.py
from django import template from django.db.models import Q from django.conf import settings from django.template.defaultfilters import stringfilter from django.utils.safestring import mark_safe import random from django.urls import reverse # from blog.models import Article, Category, Tag, Links, SideBar, LinkShowType ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,717
mrpal39/ev_code
refs/heads/master
/scrap/tuto/tuto/spiders/dataviaHTTPPOST.py
import scrapy class DemoSpider(scrapy.Spider): name = 'demo' start_urls = ['http://www.something.com/users/login.php'] def parse(self, response): return scrapy.FormRequest.from_response( response, formdata = {'username': 'admin', 'password': 'confidential'}, callback ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,718
mrpal39/ev_code
refs/heads/master
/myapi/fullfeblog/webdev/urls.py
from django.contrib import admin from django.urls import path,include from django.conf import settings from django.conf.urls.static import static from django.contrib.sitemaps.views import sitemap from blog.sitemaps import PostSitemap from django.conf.urls import url, include # from .. import core sitemaps={ 'posts'...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,719
mrpal39/ev_code
refs/heads/master
/tc_zufang/tc_zufang-slave/tc_zufang/utils/GetProxyIp.py
# -*- coding: utf-8 -*- import random import requests def GetIps(): li=[] global count url ='http://139.199.182.250:8000/?types=0&count=300' ips=requests.get(url) for ip in eval(ips.content): li.append(ip[0]+':'+ip[1]) return li GetIps()
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,720
mrpal39/ev_code
refs/heads/master
/awssam/wikidj/wikidj/codehilite.py
from .settings import * from .dev import * # Test codehilite with pygments WIKI_MARKDOWN_KWARGS = { "extensions": [ "codehilite", "footnotes", "attr_list", "headerid", "extra", ] }
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,721
mrpal39/ev_code
refs/heads/master
/scrap/tutorial/scrap/spiders/SitemapSpider.py
from datetime import datetime from scrapy.spiders import SitemapSpider class FilteredSitemapSpider(SitemapSpider): name = 'filtered_sitemap_spider' allowed_domains = ['example.com'] sitemap_urls = ['http://example.com/sitemap.xml'] def sitemap_filter(self, entries): for entry in entries: ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,722
mrpal39/ev_code
refs/heads/master
/Web-UI/mysite/urls.py
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,723
mrpal39/ev_code
refs/heads/master
/awssam/fullfeblog/blog/sitemaps.py
from django.contrib.sitemaps import Sitemap from . models import Post class PostSitemap(Sitemap): changefreq='weekly' # You create a custom sitemap by inheriting the Sitemap class of the sitemaps priority = 0.9 # module. The changefreq and priority attributes indicate the change frequency # of ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,724
mrpal39/ev_code
refs/heads/master
/eswork/articles/articles/spiders/pm_spider.py
# -*- coding: utf-8 -*- import re import json import scrapy import copy from articles.items import PmArticlesItem from articles.utils.common import date_convert class PmSpiderSpider(scrapy.Spider): name = 'pm_spider' allowed_domains = ['woshipm.com'] # start_urls = ['http://www.woshipm.com/__api/v1/stream...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,725
mrpal39/ev_code
refs/heads/master
/scrap/properties/properties/spiders/basic.py
# -*- coding: utf-8 -*- import scrapy from properties.items import PropertiesItem class BasicSpider(scrapy.Spider): name = 'basic' allowed_domains = ['web'] start_urls = ( # 'http://web:9312/properties/property_000000.html', # 'https://www.coreapi.org/#examples', # 'https://www.free...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,726
mrpal39/ev_code
refs/heads/master
/awssam/fullfeblog/blog/views.py
# from core.models import Item from django.shortcuts import render # from django.views.generic import ListView,DetailView from django.shortcuts import render, get_object_or_404 from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .models import Post from django.views.generic import ( ListV...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,727
mrpal39/ev_code
refs/heads/master
/scrap/tutorial/scrap/spiders/spider.py
import scrapy class PySpider(scrapy.Spider): name = 'quots' # start_urls = [ def start_requests(self): urls=['https://pypi.org/'] for url in urls: yield scrapy.Request(url=url, callback=self.parse) # return super().start_requests()() def parse(self, response): ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,728
mrpal39/ev_code
refs/heads/master
/awssam/ideablog/core/views.py
from django.shortcuts import render, get_object_or_404 from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.contrib.auth.models import User from django.views.generic import ( ListView, DetailView, CreateView, UpdateView, DeleteView ) from .models import Post, P...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,729
mrpal39/ev_code
refs/heads/master
/myapi/devfile/gitapi/jp.py
from fpdf import FPDF from PIL import Image import you import os pdf = FPDF () imagelist = [] # Contains the list of all images to be converted to PDF. # --------------- USER INPUT -------------------- # folder = "/home/rudi/Documents/Pictures/1.png...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,730
mrpal39/ev_code
refs/heads/master
/tc_zufang/tc_zufang-slave/tc_zufang/mongodb_pipeline.py
# -*- coding: utf-8 -*- from pymongo import MongoClient from scrapy import log import traceback from scrapy.exceptions import DropItem class SingleMongodbPipeline(object): MONGODB_SERVER = "101.200.46.191" MONGODB_PORT = 27017 MONGODB_DB = "zufang_fs" def __init__(self): #初始化mongodb连接 ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,731
mrpal39/ev_code
refs/heads/master
/Web-UI/scrapyproject/models.py
from django.db import models from django.contrib.auth.models import User class Project(models.Model): project_name = models.CharField(max_length=50) user = models.ForeignKey(User) link_generator = models.TextField(blank=True) scraper_function = models.TextField(blank=True) settings_scraper = model...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,732
mrpal39/ev_code
refs/heads/master
/myapi/fullfeblog/blog/search_indexes.py
from haystack import indexes from django . conf import settings from .models import Article ,Category ,Tag class ArticleIndex ( indexes . SearchIndex , indexes . Indexable ): text = indexes . CharField ( document = True , use_template = True ) def get_model ( self ): return Art...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,733
mrpal39/ev_code
refs/heads/master
/eswork/articles/articles/items.py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import redis import scrapy import datetime from scrapy.loader.processors import MapCompose from articles.model.es_types import ArticleType from elasticsearch_dsl.con...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,734
mrpal39/ev_code
refs/heads/master
/eswork/lcvsearch/test.py
# -*- coding: utf-8 -*- import redis redis_cli = redis.StrictRedis() redis_cli.incr("pm_count")
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,735
mrpal39/ev_code
refs/heads/master
/awssam/iam/iam/settings.py
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'f!7k7a9k10)fbx7#@y@u9u@v3%b)f%h6xxnxf71(21z1uj^#+e' DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,736
mrpal39/ev_code
refs/heads/master
/Web-UI/scrapyproject/scrapy_packages/rabbitmq/connection.py
# -*- coding: utf-8 -*- try: import pika except ImportError: raise ImportError("Please install pika before running scrapy-rabbitmq.") RABBITMQ_CONNECTION_TYPE = 'blocking' RABBITMQ_CONNECTION_PARAMETERS = {'host': 'localhost'} def from_settings(settings, spider_name): connection_type = settings.get('R...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,737
mrpal39/ev_code
refs/heads/master
/march19/devfile/api/urls.py
from django.conf.urls import url from . import views urlpatterns = [ url('api/', views.apiurl, name='index'), ]
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,738
mrpal39/ev_code
refs/heads/master
/myapi/devfile/core/api.py
from django.http.response import HttpResponse from requests_oauthlib import OAuth2Session import json import requests_oauthlib from django.HttpResponse import request import requests from django.shortcuts import redirect, session, # payload={'key1':'search?q=','key2':['form','&api_key=306cf1684a42e4be5ec0a1c60362...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,739
mrpal39/ev_code
refs/heads/master
/myapi/fullfeblog/blog/templatetags/blog_tags.py
from django import template from ..models import Post from django.utils.safestring import mark_safe import markdown from django.db.models import Count register = template.Library() @register.filter(name='markdown') def markdown_fromat(text): return mark_safe(markdown.markdown(text)) @register.simple_tag def tota...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,740
mrpal39/ev_code
refs/heads/master
/Web-UI/scrapyproject/migrations/0009_auto_20170215_0657.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scrapyproject', '0008_scrapersdeploy'), ] operations = [ migrations.AddField( model_name='linkgendeploy', ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,741
mrpal39/ev_code
refs/heads/master
/tc_zufang/tc_zufang/tc_zufang/utils/InsertRedis.py
# -*- coding: utf-8 -*- import redis def inserintotc(str,type): try: r = redis.Redis(host='127.0.0.1', port=6379, db=0) except: print '连接redis失败' else: if type == 1: r.lpush('start_urls', str) def inserintota(str,type): try: r = redis.Redis(host='127.0.0.1', p...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,742
mrpal39/ev_code
refs/heads/master
/awssam/myscrapyproject/dev/corescrap/apps.py
from django.apps import AppConfig class CorescrapConfig(AppConfig): name = 'corescrap'
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,743
mrpal39/ev_code
refs/heads/master
/scrap/tuto/tuto/items.py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy from scrapy.item import Item ,Field from scrapy.loader import ItemLoader from scrapy.loader.processors import TakeFirst, MapCompose, Join class Demo...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,744
mrpal39/ev_code
refs/heads/master
/tc_zufang/tc_zufang-slave/tc_zufang/spiders/tczufang_detail_spider.py
# -*- coding: utf-8 -*- from scrapy_redis.spiders import RedisSpider from scrapy.selector import Selector from tc_zufang.utils.result_parse import list_first_item from scrapy.http import Request from tc_zufang.items import TcZufangItem import re defaultencoding = 'utf-8' ''' 58同城的爬虫 ''' #继承自RedisSpider,则start_urls可以从re...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,745
mrpal39/ev_code
refs/heads/master
/cte/properties/properties/items.py
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy from scrapy.item import Item,Field class PropertiesItem(): title=Field() price=Field() description=Field() address = Field() image_urls = Field() #im...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,746
mrpal39/ev_code
refs/heads/master
/myapi/fullfeblog/blog/views.py
# from core.models import Item from django.shortcuts import render # from django.views.generic import ListView,DetailView from django.shortcuts import render, get_object_or_404 from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .models import Post from django.views.generic import ( ListV...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,747
mrpal39/ev_code
refs/heads/master
/scrap/first_scrapy/first_scrapy/items.py
import scrapy class FirstScrapyItem(scrapy.Item): # define the fields for your item here like: item=DmozItem() item ['title'] = scrapy.Field() item ['url'] = scrapy.Field() item ['desc'] = scrapy.Field()
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,748
mrpal39/ev_code
refs/heads/master
/eswork/articles/articles/utils/common.py
import hashlib import datetime def date_convert(value): # 日期转化 try: create_date = datetime.datetime.strptime(value, "%Y/%m/%d").date() except Exception as e: print(e) create_date = datetime.datetime.now().date() return create_date def get_md5(url): # url md5加密 if is...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,749
mrpal39/ev_code
refs/heads/master
/tc_zufang/django_web/django_web/test.py
# -*- coding: utf-8 -*- res=u'\u4e30\u6cf0\u57ce' # rr=res.encode('gbk') print res
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,750
mrpal39/ev_code
refs/heads/master
/march19/devfile/api/views.py
from django.shortcuts import render from urllib.request import urlopen from django.shortcuts import render from django.views import View import requests # class apiurl(View): def apiurl(request): url =requests('https://api.github.com/') data=url.requests.json() context ={ 'data':data } ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,751
mrpal39/ev_code
refs/heads/master
/tc_zufang/tc_zufang-slave/tc_zufang/utils/message.py
# -*- coding: utf-8 -*- import smtplib from email.mime.text import MIMEText from email.header import Header def sendMessage_warning(): server = smtplib.SMTP('smtp.163.com', 25) server.login('seven_2016@163.com', 'ssy102009') msg = MIMEText('爬虫slave被封警告!请求解封!', 'plain', 'utf-8') msg['From'] = 'seven_2016...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,752
mrpal39/ev_code
refs/heads/master
/cte/projectfile/projectfile/items.py
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy from scrapy import Item, Field # define the fields for your item here like: # class SainsburysItem(scrapy.Item): name = scrapy.Field() class SainsburysItem(Item):...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,753
mrpal39/ev_code
refs/heads/master
/awssam/wikidj/wikidj/dev.py
from . settings import * DEBUG = True for template_engine in TEMPLATES: template_engine["OPTIONS"]["debug"] = True EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" try: import debug_toolbar # @UnusedImport MIDDLEWARE = list(MIDDLEWARE) + [ "debug_toolbar.middleware.DebugToolb...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,754
mrpal39/ev_code
refs/heads/master
/scrap/tutorial/scrap/spiders/reactor.py
import logging import scrapy logger = logging.getLogger('mycustomlogger') class MySpider(scrapy.Spider): name = 'myspider1' start_urls = ['https://scrapinghub.com'] def parse(self, response): logger.info('Parse function called on %s', response.url)
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,755
mrpal39/ev_code
refs/heads/master
/scrap/example_project/open_news/migrations/0002_document.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-02-24 08:54 from __future__ import unicode_literals from django.db import migrations, models import open_news.models class Migration(migrations.Migration): dependencies = [ ('open_news', '0001_initial'), ] operations = [ migr...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,756
mrpal39/ev_code
refs/heads/master
/tc_zufang/django_web/datashow/views.py
# -*- coding: utf-8 -*- from django.shortcuts import render from . models import ItemInfo from django.core.paginator import Paginator from mongoengine import connect connect("zufang_fs",host='127.0.0.1') # Create your views here. def document(request): limit=15 zufang_info=ItemInfo.objects pageinator=Pagina...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,757
mrpal39/ev_code
refs/heads/master
/awssam/django-blog/src/blog/context_processors.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: context_processors.py Description : Author : JHao date: 2017/4/14 ------------------------------------------------- Change Activity: 2017/4/14: -----------------------------...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,758
mrpal39/ev_code
refs/heads/master
/myapi/devfile/request/api1.py
import requests import json url='https://www.scraping-bot.io/rawHtmlPage.html' username = 'yourUsername' apiKey = 'yourApiKey' apiUrl = "http://api.scraping-bot.io/scrape/raw-html" payload = json.dumps({"url":url}) headers = { 'Content-Type': "application/json" } response = requests.request("POST", apiUrl, data...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,759
mrpal39/ev_code
refs/heads/master
/awssam/ideablog/core/forms.py
from django import forms from .models import Products class productForm(forms.ModelForm): class Meta: model=Products fields=['title','description','price']
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,760
mrpal39/ev_code
refs/heads/master
/scrap/tutorial/scrap/spiders/login.py
import scrapy def authentication_failed(response): pass class LoginSpider(scrapy.Spider): name='ex' start_urls=['https://www.facebook.com/login.php'] def parse(self,response): return scrapy.FormRequest.from_response( response,formdata={'username':'john','password':'secret'}, ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,761
mrpal39/ev_code
refs/heads/master
/Web-UI/scrapyproject/scrapy_packages/sample_settings.py
#rabbitmq and mongodb settings SCHEDULER = ".rabbitmq.scheduler.Scheduler" SCHEDULER_PERSIST = True RABBITMQ_HOST = 'ip address' RABBITMQ_PORT = 5672 RABBITMQ_USERNAME = 'guest' RABBITMQ_PASSWORD = 'guest' MONGODB_PUBLIC_ADDRESS = 'ip:port' # This will be shown on the web interface, but won't be used for connecting t...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,762
mrpal39/ev_code
refs/heads/master
/Web-UI/scrapyproject/urls.py
from django.conf.urls import include, url from . import views urlpatterns = [ url(r'^$', views.main_page, name="mainpage"), url(r'^create/$', views.create_new, name="newproject"), url(r'^manage/(?P<projectname>[\w]+)/', views.manage_project, name="manageproject"), url(r'^delete/(?P<projectname>[\w]+)/'...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,763
mrpal39/ev_code
refs/heads/master
/awssam/ideablog/core/migrations/0003_auto_20201113_0620.py
# Generated by Django 3.1.3 on 2020-11-13 06:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0002_products'), ] operations = [ migrations.RenameModel( old_name='Post', new_name='feeds', ), ]
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,764
mrpal39/ev_code
refs/heads/master
/cte/properties/properties/spiders/webi.py
import scrapy class WebiSpider(scrapy.Spider): name = 'webi' allowed_domains = ['web'] start_urls = ['http://web/'] def parse(self, response): pass
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,765
mrpal39/ev_code
refs/heads/master
/scrap/tuto/tuto/spiders/scrapy.py
import scrapy from scrapy.spiders import CSVFeedSpider from scrapy.spiders import SitemapSpider from scrapy.spiders import CrawlSpider,Rule from scrapy.linkextractor import LinkExtractor from tuto.items import DemoItem from scrapy.loader import ItemLoader from tuto.items import Demo class DemoSpider(CrawlSpider)...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,766
mrpal39/ev_code
refs/heads/master
/awssam/iam/users/views.py
from oauth2_provider.views.generic import ProtectedResourceView from django.http import HttpResponse
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,767
mrpal39/ev_code
refs/heads/master
/awssam/django-blog/src/blog/templatetags/custom_filter.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: custom_filter.py Description : Author : JHao date: 2017/4/14 ------------------------------------------------- Change Activity: 2017/4/14: ----------------------------------...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,768
mrpal39/ev_code
refs/heads/master
/eswork/lcvsearch/search/models.py
from django.db import models # Create your models here. from datetime import datetime from elasticsearch_dsl import DocType, Date, Nested, Boolean, \ analyzer, InnerObjectWrapper, Completion, Keyword, Text, Integer from elasticsearch_dsl.analysis import CustomAnalyzer as _CustomAnalyzer from elasticsearch_dsl.c...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,769
mrpal39/ev_code
refs/heads/master
/Web-UI/scrapyproject/admin.py
from django.contrib import admin from .models import Project, Item, Field, Pipeline # Register your models here. admin.site.register(Project) admin.site.register(Item) admin.site.register(Field) admin.site.register(Pipeline)
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,770
mrpal39/ev_code
refs/heads/master
/awssam/django-blog/src/blog/models.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: models.py Description : Author : JHao date: 2016/11/18 ------------------------------------------------- Change Activity: 2016/11/18: --------------------------------------------...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,771
mrpal39/ev_code
refs/heads/master
/scrap/tuto/tuto/spiders/callable.py
from types import resolve_bases import scrapy from scrapy.spidermiddlewares.httperror import HttpError from twisted.internet.error import DNSLookupError from twisted.internet.error import TimeoutError,TCPTimedOutError class DemoSpider(scrapy.Spider): name='demo' start_urls=[ "http://www.httpbin.org/"...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,772
mrpal39/ev_code
refs/heads/master
/scrap/example_project/open_news/models.py
#Stage 2 Update (Python 3) from __future__ import unicode_literals from django.utils.encoding import python_2_unicode_compatible from django.db import models from django.db.models.signals import pre_delete from django.dispatch import receiver from scrapy_djangoitem import DjangoItem from dynamic_scraper.models import S...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,773
mrpal39/ev_code
refs/heads/master
/myapi/fullfeblog/blog/urls.py
from django.urls import path from .views import ( PostListView, PostDetailView, # PostCreateView, # PostUpdateView, # PostDeleteView, # UserPostListView ) from . import views from .feeds import LatestPostsFeed urlpatterns = [ path('', views.home, name='home'), path('blogs/', views.Pos...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,774
mrpal39/ev_code
refs/heads/master
/Web-UI/scrapyproject/scrapy_packages/mongodb/scrapy_mongodb.py
# coding:utf-8 import datetime from pymongo import errors from pymongo.mongo_client import MongoClient from pymongo.mongo_replica_set_client import MongoReplicaSetClient from pymongo.read_preferences import ReadPreference from scrapy.exporters import BaseItemExporter try: from urllib.parse import quote except: ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,775
mrpal39/ev_code
refs/heads/master
/awssam/fullfeblog/blog/feeds.py
from django.contrib.syndication.views import Feed from django.template.defaultfilters import truncatewords from django.urls import reverse_lazy from .models import Post class LatestPostsFeed(Feed): title ='My Blog' link=reverse_lazy('post_list') description = 'new post of my Blog.' def items(s...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,776
mrpal39/ev_code
refs/heads/master
/awssam/tutorial/api.py
import http.client conn = http.client.HTTPSConnection("bloomberg-market-and-financial-news.p.rapidapi.com") headers = { 'x-rapidapi-key': "bd689f15b2msh55122d4390ca494p17cddcjsn225c43ecc6d4", 'x-rapidapi-host': "bloomberg-market-and-financial-news.p.rapidapi.com" } conn.request("GET", "/market/get-cross-...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,777
mrpal39/ev_code
refs/heads/master
/awssam/django-blog/src/blog/urls.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: urls.py Description : Author : JHao date: 2017/4/13 ------------------------------------------------- Change Activity: 2017/4/13: -------------------------------------------...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,778
mrpal39/ev_code
refs/heads/master
/scrap/properties/properties/items.py
from scrapy.item import Item, Field import datetime import socket class PropertiesItem(Item): # Primary fields title = PropertiesItem() price = Field() description = Field() address = Field() image_urls = Field() # Calculated fields images = Field() location = Field() # House...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,779
mrpal39/ev_code
refs/heads/master
/cte/properties/properties/spiders/basic.py
import scrapy from properties.items import PropertiesItem from scrapy.loader import ItemLoader from itemloaders.processors import MapCompose, Join class BasicSpider(scrapy.Spider): name = 'basic' allowed_domains = ['web'] start_urls = ['http://web:9312/properties/property_000000.html'] def parse(self,...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,780
mrpal39/ev_code
refs/heads/master
/awssam/django-blog/src/django_blog/util.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: util Description : Author : JHao date: 2020/9/30 ------------------------------------------------- Change Activity: 2020/9/30: ------------------------------------------------- ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,781
mrpal39/ev_code
refs/heads/master
/scrap/tuto/tuto/pipelines.py
import collections from scrapy.exceptions import DropItem from scrapy.exceptions import DropItem import pymongo class TutoPipeline(object): vat=2.55 def process_item(self, item, spider): if item["price"]: if item['exclues_vat']: item['price']= item['price']*self.vat ...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,782
mrpal39/ev_code
refs/heads/master
/tc_zufang/tc_zufang/tc_zufang/settings.py
# -*- coding: utf-8 -*- BOT_NAME = 'tc_zufang' SPIDER_MODULES = ['tc_zufang.spiders'] NEWSPIDER_MODULE = 'tc_zufang.spiders' # Crawl responsibly by identifying yourself (and your website) on the user-agent #USER_AGENT = 'tc_zufang (+http://www.yourdomain.com)' #item Pipeline同时处理item的最大值为100 # CONCURRENT_ITEMS=100 #sc...
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,783
mrpal39/ev_code
refs/heads/master
/myapi/devfile/blog/urls.py
from django.urls import path,include from blog import views urlpatterns = [ # path('', views.index, name='base'), path('', views.list, name='list'), # path('home/', views.home, name='home'), # path('search/', views.Search, name='home_search'), # path('', views.home, name='home'), ]
{"/awssam/iam/users/urls.py": ["/awssam/iam/users/views.py"], "/myapi/devfile/core/views.py": ["/myapi/devfile/core/forms.py"], "/Web-UI/scrapyproject/views.py": ["/Web-UI/scrapyproject/forms.py", "/Web-UI/scrapyproject/models.py"], "/awssam/ideablog/core/admin.py": ["/awssam/ideablog/core/models.py"], "/awssam/wikidj/...
3,826
hdoupe/Matchups
refs/heads/master
/data/build_data.py
import pandas as pd # people from: https://raw.githubusercontent.com/chadwickbureau/register/master/data/people.csv # sc from: from pybaseball import statcast sc = statcast(start_dt="2012-01-01", end_dt="2021-01-01") sc.to_parquet("statcast_dump.parquet", engine="fastparquet") people = pd.read_csv("github://chadwick...
{"/matchups/__init__.py": ["/matchups/matchups.py", "/matchups/utils.py"], "/matchups/matchups.py": ["/matchups/utils.py", "/matchups/__init__.py"], "/matchups/tests/test_outputs.py": ["/matchups/__init__.py"], "/matchups/tests/test_inputs.py": ["/matchups/__init__.py"], "/cs-config/cs_config/functions.py": ["/matchups...
3,827
hdoupe/Matchups
refs/heads/master
/cs-config/cs_config/tests/test_functions.py
from cs_kit import CoreTestFunctions from cs_config import functions class TestFunctions1(CoreTestFunctions): get_version = functions.get_version get_inputs = functions.get_inputs validate_inputs = functions.validate_inputs run_model = functions.run_model ok_adjustment = { "matchup": { ...
{"/matchups/__init__.py": ["/matchups/matchups.py", "/matchups/utils.py"], "/matchups/matchups.py": ["/matchups/utils.py", "/matchups/__init__.py"], "/matchups/tests/test_outputs.py": ["/matchups/__init__.py"], "/matchups/tests/test_inputs.py": ["/matchups/__init__.py"], "/cs-config/cs_config/functions.py": ["/matchups...
3,828
hdoupe/Matchups
refs/heads/master
/matchups/__init__.py
name = "matchups" __version__ = "2021" from matchups.matchups import * from matchups.utils import *
{"/matchups/__init__.py": ["/matchups/matchups.py", "/matchups/utils.py"], "/matchups/matchups.py": ["/matchups/utils.py", "/matchups/__init__.py"], "/matchups/tests/test_outputs.py": ["/matchups/__init__.py"], "/matchups/tests/test_inputs.py": ["/matchups/__init__.py"], "/cs-config/cs_config/functions.py": ["/matchups...
3,829
hdoupe/Matchups
refs/heads/master
/matchups/utils.py
import json import os CURRENT_PATH = os.path.abspath(os.path.dirname(__file__)) def get_choices(): with open(os.path.join(CURRENT_PATH, "playerchoices.json")) as f: return json.loads(f.read()) def pdf_to_clean_html(pdf): """Takes a PDF and returns an HTML table without any deprecated tags or i...
{"/matchups/__init__.py": ["/matchups/matchups.py", "/matchups/utils.py"], "/matchups/matchups.py": ["/matchups/utils.py", "/matchups/__init__.py"], "/matchups/tests/test_outputs.py": ["/matchups/__init__.py"], "/matchups/tests/test_inputs.py": ["/matchups/__init__.py"], "/cs-config/cs_config/functions.py": ["/matchups...
3,830
hdoupe/Matchups
refs/heads/master
/matchups/matchups.py
import json import os from datetime import datetime, date from bokeh.plotting import figure, show from bokeh.models import ColumnDataSource from bokeh.embed import json_item from bokeh.palettes import d3 from bokeh.models.widgets import Tabs, Panel import pandas as pd import numpy as np import paramtools import mars...
{"/matchups/__init__.py": ["/matchups/matchups.py", "/matchups/utils.py"], "/matchups/matchups.py": ["/matchups/utils.py", "/matchups/__init__.py"], "/matchups/tests/test_outputs.py": ["/matchups/__init__.py"], "/matchups/tests/test_inputs.py": ["/matchups/__init__.py"], "/cs-config/cs_config/functions.py": ["/matchups...
3,831
hdoupe/Matchups
refs/heads/master
/data/write_players.py
import pandas as pd people = pd.read_csv("github://chadwickbureau:register@master/data/people.csv") people = people.loc[people.mlb_played_last > 2009, :] all_players = pd.DataFrame.from_dict( {"players": sorted((people.name_first + " " + people.name_last).dropna().unique())} ) all_players.to_parquet("../matchups/...
{"/matchups/__init__.py": ["/matchups/matchups.py", "/matchups/utils.py"], "/matchups/matchups.py": ["/matchups/utils.py", "/matchups/__init__.py"], "/matchups/tests/test_outputs.py": ["/matchups/__init__.py"], "/matchups/tests/test_inputs.py": ["/matchups/__init__.py"], "/cs-config/cs_config/functions.py": ["/matchups...
3,832
hdoupe/Matchups
refs/heads/master
/matchups/tests/test_outputs.py
import matchups def test_get_matchup(): adj = { "matchup": { "batter": [{"value": ["Freddie Freeman"], "use_full_sample": False}] } } assert matchups.get_matchup({"use_full_sample": False}, adj) def test_get_matchup_empty(): adj = { "matchup": {"pitcher": [{"value...
{"/matchups/__init__.py": ["/matchups/matchups.py", "/matchups/utils.py"], "/matchups/matchups.py": ["/matchups/utils.py", "/matchups/__init__.py"], "/matchups/tests/test_outputs.py": ["/matchups/__init__.py"], "/matchups/tests/test_inputs.py": ["/matchups/__init__.py"], "/cs-config/cs_config/functions.py": ["/matchups...
3,833
hdoupe/Matchups
refs/heads/master
/matchups/tests/test_inputs.py
import matchups def test_MatchupsParams(): params = matchups.MatchupsParams() assert params def test_update_params(): params = matchups.MatchupsParams() adj = {"batter": [{"use_full_sample": False, "value": ["Alex Rodriguez"]}]} params.adjust(adj) params.set_state(use_full_sample=False) ...
{"/matchups/__init__.py": ["/matchups/matchups.py", "/matchups/utils.py"], "/matchups/matchups.py": ["/matchups/utils.py", "/matchups/__init__.py"], "/matchups/tests/test_outputs.py": ["/matchups/__init__.py"], "/matchups/tests/test_inputs.py": ["/matchups/__init__.py"], "/cs-config/cs_config/functions.py": ["/matchups...
3,834
hdoupe/Matchups
refs/heads/master
/cs-config/cs_config/functions.py
import matchups def get_version(): return matchups.__version__ def get_inputs(meta_param_dict): return matchups.get_inputs(meta_param_dict) def validate_inputs(meta_param_dict, adjustment, errors_warnings): return matchups.validate_inputs(meta_param_dict, adjustment, errors_warnings) def run_model(m...
{"/matchups/__init__.py": ["/matchups/matchups.py", "/matchups/utils.py"], "/matchups/matchups.py": ["/matchups/utils.py", "/matchups/__init__.py"], "/matchups/tests/test_outputs.py": ["/matchups/__init__.py"], "/matchups/tests/test_inputs.py": ["/matchups/__init__.py"], "/cs-config/cs_config/functions.py": ["/matchups...
3,877
daratovstyga/web_http
refs/heads/master
/search.py
import sys from io import BytesIO import requests from PIL import Image import get_ap from get_cord import get_cord ll = get_cord() org = get_ap.get_ap(ll)[0] map_params = { "ll": ll, "l": "map", "pt": ll + ',round' + '~' + ','.join(map(str, org[3])) + ',comma' } map_api_server = "http://static-maps.yand...
{"/search.py": ["/get_ap.py", "/get_cord.py"], "/district.py": ["/get_cord.py"], "/guessing_game.py": ["/get_cord_new.py"], "/10ap.py": ["/get_cord.py", "/get_ap.py"]}
3,878
daratovstyga/web_http
refs/heads/master
/get_cord.py
import sys import requests def get_cord(): # toponym_to_find = "Москва, ул. Ак. Королева, 12" toponym_to_find = " ".join(sys.argv[1:]) geocoder_api_server = "http://geocode-maps.yandex.ru/1.x/" geocoder_params = { "apikey": "40d1649f-0493-4b70-98ba-98533de7710b", "geocode": toponym_to_...
{"/search.py": ["/get_ap.py", "/get_cord.py"], "/district.py": ["/get_cord.py"], "/guessing_game.py": ["/get_cord_new.py"], "/10ap.py": ["/get_cord.py", "/get_ap.py"]}
3,879
daratovstyga/web_http
refs/heads/master
/district.py
import sys import requests from get_cord import get_cord ll = get_cord() geocoder_api_server = "http://geocode-maps.yandex.ru/1.x/" geocoder_params = { "apikey": "40d1649f-0493-4b70-98ba-98533de7710b", "geocode": ll, "kind": 'district', "format": "json"} response = requests.get(geocoder_api_server, par...
{"/search.py": ["/get_ap.py", "/get_cord.py"], "/district.py": ["/get_cord.py"], "/guessing_game.py": ["/get_cord_new.py"], "/10ap.py": ["/get_cord.py", "/get_ap.py"]}
3,880
daratovstyga/web_http
refs/heads/master
/guessing_game.py
import os import sys import random import pygame import requests from get_cord_new import get_cord map_files = [] cities = ['Москва', 'Курган', 'Санкт-Петербург', 'Владивосток', 'Калининград'] pos = [get_cord(i) for i in cities] for i in range(len(pos)): map_params = {"ll": pos[i][0], "spn": pos...
{"/search.py": ["/get_ap.py", "/get_cord.py"], "/district.py": ["/get_cord.py"], "/guessing_game.py": ["/get_cord_new.py"], "/10ap.py": ["/get_cord.py", "/get_ap.py"]}
3,881
daratovstyga/web_http
refs/heads/master
/get_ap.py
import math import sys import requests def dist(cord1, cord2): dx = abs(cord1[0] - cord2[0]) * 111 * 1000 * math.cos(math.radians((cord1[1] + cord2[1]) / 2)) dy = abs(cord1[1] - cord2[1]) * 111 * 1000 return int((dx * dx + dy * dy) ** 0.5) def get_ap(ll, k=1): ll_float = list(map(float, ll.split(','...
{"/search.py": ["/get_ap.py", "/get_cord.py"], "/district.py": ["/get_cord.py"], "/guessing_game.py": ["/get_cord_new.py"], "/10ap.py": ["/get_cord.py", "/get_ap.py"]}
3,882
daratovstyga/web_http
refs/heads/master
/10ap.py
import sys from io import BytesIO import requests from PIL import Image from get_cord import get_cord import get_ap ll = get_cord() info = get_ap.get_ap(ll, 10) rc = ',pm2gnm~'.join([','.join(map(str, org[3])) for org in info if org[4] == 'круглосуточно']) if rc: rc += ',pm2gnm~' rcn = ',pm2blm~'.join([','.join(...
{"/search.py": ["/get_ap.py", "/get_cord.py"], "/district.py": ["/get_cord.py"], "/guessing_game.py": ["/get_cord_new.py"], "/10ap.py": ["/get_cord.py", "/get_ap.py"]}
3,883
daratovstyga/web_http
refs/heads/master
/get_cord_new.py
import sys import requests def optimal_spn(toponym): to = toponym["boundedBy"]["Envelope"] lc = list(map(float, to["lowerCorner"].split())) uc = list(map(float, to["upperCorner"].split())) spn = ','.join([str(abs(uc[0] - lc[0]) / 50), str(abs(uc[1] - lc[1]) / 50)]) return spn def get_cord(topony...
{"/search.py": ["/get_ap.py", "/get_cord.py"], "/district.py": ["/get_cord.py"], "/guessing_game.py": ["/get_cord_new.py"], "/10ap.py": ["/get_cord.py", "/get_ap.py"]}
3,884
chengyan1984/cdk-gui
refs/heads/master
/ConkaUtil.py
import json from urllib.parse import urlparse import requests class ConkaUtil: def __init__(self, username, passwd, adminid='15870', factoryid='1', baseurl='https://crm.konka.com', bjdomain='http://north.bangjia.me'): parsed_uri = urlparse(baseurl) self.host = parsed_uri.netloc ...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,885
chengyan1984/cdk-gui
refs/heads/master
/SuningUtil.py
import json import re import time from datetime import date, timedelta from urllib import parse from urllib.parse import urlencode, urlparse import requests from BaseUtil import BaseUtil from cookie_test import fetch_chrome_cookie class SuningUtil(BaseUtil): def __init__(self, username, passwd, adminid='24', f...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,886
chengyan1984/cdk-gui
refs/heads/master
/huadi_zb.py
# -*- coding: utf-8 -*- import requests import json from bs4 import BeautifulSoup import re from datetime import date, timedelta, datetime from Util import Util class HDScrap(Util): def __init__(self, username='01007544', pwd='160324', baseurl="http://cc.vatti.com.cn:8180", adminid='3', bjdomain=...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,887
chengyan1984/cdk-gui
refs/heads/master
/searchutil.py
import json import requests base_url = "http://114.55.168.6/" search_api = base_url + "es-test/essearch.php" oper_api = base_url + "es-test/oper-search.php" # 操作类别:1:建单 2:派单 3:审核 4:结算 5:回访 def getAdminids(): params = dict() params['method'] = 'search' params['index'] = 'yxgoper' params['from'] = 0 ...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,888
chengyan1984/cdk-gui
refs/heads/master
/TCSMCookieUtil.py
import io import json import re import sys import unicodedata from datetime import date, timedelta from urllib import parse import chardet import requests from idna import unicode from BaseUtil import BaseUtil from cookie_test import fetch_chrome_cookie class TCSMUtil(BaseUtil): def __init__(self, username, pa...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,889
chengyan1984/cdk-gui
refs/heads/master
/CDKCookieUtil.py
import datetime import json import re import time from urllib import parse from urllib.parse import urlparse import requests from BaseUtil import BaseUtil from cookie_test import fetch_chrome_cookie class CDKCookieUtil(BaseUtil): def __init__(self, username='', passwd='', adminid='24', factoryid='18', baseurl='...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,890
chengyan1984/cdk-gui
refs/heads/master
/GreeUtil.py
import json from datetime import date, timedelta from urllib.parse import urlparse, urlencode, unquote import requests from Util import Util class GreeUtil(Util): def __init__(self, username, passwd, adminid='15870', factoryid='1', baseurl='http://116.6.118.169:7909', bjdomain='http://fatest.ba...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,891
chengyan1984/cdk-gui
refs/heads/master
/aesgcm.py
import os import sys from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.ciphers import ( Cipher, algorithms, modes ) NONCE_BYTE_SIZE = 12 def encrypt(cipher, plaintext, nonce): cipher.mode = modes.GCM(nonce) encryptor = cipher.encryptor() ciphertext = encryp...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,892
chengyan1984/cdk-gui
refs/heads/master
/CDKUtil.py
import datetime import json import os import re import random import sys from urllib import parse from urllib.parse import urlparse import requests from PIL import Image from io import BytesIO from bs4 import BeautifulSoup # from useragent import agents class CDKUtil: def __init__(self, username='', passwd='D...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,893
chengyan1984/cdk-gui
refs/heads/master
/MideaUtil.py
import json import time from datetime import date, timedelta import requests from BaseUtil import BaseUtil class MideaUtil(BaseUtil): def __init__(self, username, passwd, adminid='24', factoryid='4', baseurl='https://cs.midea.com/c-css/', bjdomain='http://yxgtest.bangjia.me'): super(Mi...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,894
chengyan1984/cdk-gui
refs/heads/master
/BaseUtil.py
import re from urllib.parse import urlparse import json import requests from bs4 import BeautifulSoup from datetime import date, timedelta, datetime from Util import Util from cookie_test import fetch_chrome_cookie class BaseUtil(Util): def __init__(self, username, passwd, adminid='15870', factoryid='1', baseurl...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,895
chengyan1984/cdk-gui
refs/heads/master
/master.py
import os import sys import time from datetime import datetime from datetime import timedelta import wx import wx.adv import wx.lib.mixins.inspection import wx.lib.mixins.listctrl as listmix import searchutil AppTitle = "报表管理" VERSION = 0.1 class MyListCtrl(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin): def __in...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,896
chengyan1984/cdk-gui
refs/heads/master
/test_text.py
#!/usr/bin/env python import time import wx import wx.adv #---------------------------------------------------------------------- class TestPanel(wx.Panel): def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) textSizer = wx.BoxSizer(wx.VERTICAL) # s...
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...
3,897
chengyan1984/cdk-gui
refs/heads/master
/test/test_re.py
import re string = "originOrgId: 'WDCN02431'," print(re.findall(re.compile(r"originOrgId: ['](.*?)[']", re.S), string)[0])
{"/SuningUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/huadi_zb.py": ["/Util.py"], "/TCSMCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/CDKCookieUtil.py": ["/BaseUtil.py", "/cookie_test.py"], "/GreeUtil.py": ["/Util.py"], "/MideaUtil.py": ["/BaseUtil.py"], "/BaseUtil.py": ["/Util.py", "/cookie_test.py"], "/m...