From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by gnuweeb.org (Postfix) with ESMTPS id E12847E24F for ; Mon, 18 Jul 2022 11:20:41 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=gt6P7Zk/; dkim-atps=neutral Received: by mail-pg1-f176.google.com with SMTP id f65so10238529pgc.12 for ; Mon, 18 Jul 2022 04:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IgTO3Mn1ZgnLM7jPv56Hvix5M6Tz+Lx61uaRCnBYfJc=; b=gt6P7Zk/tknAgwkV2GKmVAOsnf4xWpyXsuToIiTQjohIT75Rlg1He0PxydlY1/iMll D9XVdsZ9d53Nka9ONk7MUJLlj64C+XeLv614eiGSQtA3PT3jywsGXceNcyRjYFb/zoMS 8Snx5wF2j4uW8GYZISER7T8RtwFZ66wtgiJN7Uxh72PgV3L/NKutJQ9kOJlT4VgUys63 JVaOGvfMbkVd05bF66jzlgTVOcAx98iW/gopivDzEzAfOO23Z96IxMiOAR4E4Z0FNjQf KJs/2fSCE8JJN37mS5BM0dJpbRy3DBOIiNBeS0PdX6B1sXV5ZlZIObYfJu6x0v/M3bCz noGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IgTO3Mn1ZgnLM7jPv56Hvix5M6Tz+Lx61uaRCnBYfJc=; b=euhmsA+sAEyOWdEJga1d8mKJskafZ9QcvKc9QxS8SJWO04vI1wNAIn+724A0dpssEi FzWNK+Gf9esmgEQCHTu9nD1qOopG8B7mrYQ7gUWAW11iwHptOVHzNIUaFk+giKLW0JrP HXgXR2Ei0kbJ1TsCw1jdRtFMpdnuVijn0cOikbiubFUwPLk1SDo09WJNWGuWrrR4lA3P L6r3XvT0S3xujZmBgMKtLt4RXOh2D91wmjopcdkHTIqPaMS5PGAyRDF6TgbZSihmTJm3 A5qUw8Yj6aKmsNEAPFAdAA8vpuzmEhMVfBTq+5JMzQCFwQWYYGSkhu1cGyY1Zodpr7gA 2DHw== X-Gm-Message-State: AJIora8DHFlRZrjQpTSauNTMfNJzGjhvdU9vS/flLiB5+7jnyYhkeSMn 0TSaBaHK1z6DkA/Nb293s6s= X-Google-Smtp-Source: AGRyM1vw38sCa6WnE7RsmVSFKMsVvPiueT0sFpV0pIltUDwdf44EI6ZpyAJ6vyGtmsjoVcQdWaYpWA== X-Received: by 2002:a05:6a00:27a6:b0:52a:e089:e777 with SMTP id bd38-20020a056a0027a600b0052ae089e777mr28499350pfb.53.1658143241246; Mon, 18 Jul 2022 04:20:41 -0700 (PDT) Received: from localhost.localdomain ([101.128.125.134]) by smtp.gmail.com with ESMTPSA id z14-20020aa7948e000000b0052ad6d627a6sm8991072pfk.166.2022.07.18.04.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 04:20:40 -0700 (PDT) From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , GNU/Weeb Mailing List Subject: [PATCH v1 02/11] Fix import problem Date: Mon, 18 Jul 2022 18:19:58 +0700 Message-Id: <20220718112007.792-3-riskimuhammmad1@gmail.com> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20220718112007.792-1-riskimuhammmad1@gmail.com> References: <20220718112007.792-1-riskimuhammmad1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Signed-off-by: Muhammad Rizki --- daemon/packages/plugins/scrape.py | 1 + daemon/run.py | 2 -- daemon/scraper/bot.py | 1 - daemon/scraper/scraper.py | 4 ---- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/daemon/packages/plugins/scrape.py b/daemon/packages/plugins/scrape.py index c9da71a..1698c6d 100644 --- a/daemon/packages/plugins/scrape.py +++ b/daemon/packages/plugins/scrape.py @@ -15,6 +15,7 @@ from scraper import utils from scraper import Bot import shutil import re +import asyncio # diff --git a/daemon/run.py b/daemon/run.py index ef1d8f4..0a650cd 100644 --- a/daemon/run.py +++ b/daemon/run.py @@ -5,14 +5,12 @@ # from apscheduler.schedulers.asyncio import AsyncIOScheduler -from email.message import Message from scraper import BotMutexes from dotenv import load_dotenv from mysql import connector from pyrogram import Client from scraper import Scraper from scraper import Bot -import asyncio import os diff --git a/daemon/scraper/bot.py b/daemon/scraper/bot.py index 9b95d50..c62c554 100644 --- a/daemon/scraper/bot.py +++ b/daemon/scraper/bot.py @@ -13,7 +13,6 @@ from scraper import Scraper from pyrogram import enums from . import utils from .db import Db -import xmltodict import pyrogram import asyncio import shutil diff --git a/daemon/scraper/scraper.py b/daemon/scraper/scraper.py index b70df31..2d5942b 100644 --- a/daemon/scraper/scraper.py +++ b/daemon/scraper/scraper.py @@ -5,14 +5,10 @@ # from typing import Dict, List -from .db import Db import email.policy import xmltodict -import operator -import asyncio import httpx import email -import json class Scraper(): -- Muhammad Rizki