// вывод всех GET параметров
print_r($_GET);
// по отдельности
echo $_GET['utm_source'];
echo $_GET['utm_medium'];
echo $_GET['utm_campaign'];
echo $_GET['utm_content'];
// если ссылка это строка
$parts = parse_url($url);
parse_str($parts['query'], $query);
echo $query['utm_source'];
echo $query['utm_medium'];
echo $query['utm_campaign'];
echo $query['utm_content'];
import requests
from bs4 import BeautifulSoup
def trade_spiders (max_page):
page = 1
while page <= max_page:
url = 'http://new-baskino.club/page/' + str(page)
source_code = requests.get(url)
plain_text = source_code.content
soup = BeautifulSoup(plain_text, 'html.parser')
for link in soup.find_all('div', attrs={"class": "posttitle"}):
href = link.find('a')['href']
print(href)
title = link.find('a').text
print(title)
page+=1
trade_spiders(1)
import requests
from bs4 import BeautifulSoup
def trade_spiders (max_page):
page = 1
while page <= max_page:
url = 'http://new-baskino.club/page/' + str(page)
source_code = requests.get(url)
plain_text = source_code.content
soup = BeautifulSoup(plain_text, 'html.parser')
for link in soup.find_all('div', attrs={"class": "posttitle"}):
href = link.find('a')['href']
print(href)
page+=1
trade_spiders(1)