Skip to content

Instantly share code, notes, and snippets.

View sat0ro's full-sized avatar
💭
🫠🫥

sat0ro

💭
🫠🫥
View GitHub Profile
import logging
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from payne_core.utils.retrier import retry
from payne_core.config import conf
from bs4 import BeautifulSoup
import requests
from bs4 import BeautifulSoup
# URL страницы
url = 'https://tp.sibserv.com/tender/lot_26513.php'
# Выполняем запрос к странице
response = requests.get(url)
# Проверяем, успешно ли выполнен запрос
from bs4 import BeautifulSoup
import logging
import re
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def get_values(soup: BeautifulSoup):
import requests
from bs4 import BeautifulSoup
url = 'https://tp.sibserv.com/tenders.php'
response = requests.get(url)
response.raise_for_status()
soup = BeautifulSoup(response.content, 'html.parser')
import requests
from bs4 import BeautifulSoup
url = 'https://tp.sibserv.com'
response = requests.get(url)
response.raise_for_status()
soup = BeautifulSoup(response.text, 'html.parser')
from bs4 import BeautifulSoup
import logging
import re
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def get_values_briefly(soup: BeautifulSoup):
import requests
from bs4 import BeautifulSoup
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
BASE_URL = "https://tp.sibserv.com/tenders.php"