$url = 'https://game-analytics.ru';
$content = file_get_contents($url);
echo $content;
source prezumciya_source
{
type = mysql
sql_host = localhost
sql_user = root
sql_pass =
sql_db = wp
sql_port = 3306
sql_query = SELECT ID AS id, post_title AS title, post_content AS content FROM wp_posts WHERE post_status = 'publish' AND post_type = 'post'
sql_field_string = post_title
sql_field_string = post_content
}
index prezumciya_index
{
source = prezumciya_source
path = ./data/prezumciya_index
charset_type = utf-8
field = title
field = content
}
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
options = Options()
options.add_argument("--headless")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
url = "https://goverla.ua/"
driver.get(url)
driver.implicitly_wait(10)
usd_sale_element = driver.find_element(By.XPATH, "//div[contains(text(), 'USD')]/following-sibling::div[2]/h3")
usd_sale_value = usd_sale_element.text
print(f"Курс продажи USD: {usd_sale_value}")
driver.quit()
export default defineNuxtConfig({
modules: ['yandex-metrika-module-nuxt3'],
yandexMetrika: {
id: 'YOUR_METRICA_ID',
webvisor: true,
clickmap: true,
trackLinks: true,
accurateTrackBounce: true,
defer: true,
}
})
<template>
<button @click="sendGoal">Отправить форму</button>
</template>
<script setup>
import { ref, onMounted } from 'vue'
const sendGoal = () => {
if (typeof window.ym === 'function') {
window.ym(56555551, 'reachGoal', 'form_sent')
} else {
console.error('Yandex Metrica is not loaded yet.')
}
}
onMounted(() => {
const waitForYm = setInterval(() => {
if (typeof window.ym === 'function') {
console.log('Yandex Metrica is loaded')
clearInterval(waitForYm)
}
}, 500)
})
</script>
<template>
<button @click="sendGoal">Отправить форму</button>
</template>
<script setup>
import { ref, onMounted } from 'vue'
const isYandexMetrikaLoaded = ref(false)
onMounted(() => {
const checkMetrika = setInterval(() => {
if (window.ym) {
isYandexMetrikaLoaded.value = true
clearInterval(checkMetrika)
}
}, 500)
})
const sendGoal = () => {
if (isYandexMetrikaLoaded.value) {
window.ym(56555551, 'reachGoal', 'form_sent')
}
}
</script>
<meta http-equiv="Content-Security-Policy" content="frame-src 'self' https://game-analytics.ru; child-src 'self' https://*.allwebgames.com https://*.playhop.com https://*.yandex.az https://*.yandex.by;">
[Unit]
Description=my_prog
After=network-online.target nss-user-lookup.target
[Service]
User=pi
Group=pi
WorkingDirectory=/home/pi/www
Environment="PYTHONPATH=/home/pi/www/env/lib/python3.12/site-packages"
ExecStart=/home/pi/www/env/bin/python3 /home/pi/www/run.py
RestartSec=10
Restart=always
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
FROM php:8.2-fpm-alpine
WORKDIR /var/www/laravel
RUN adduser -D -u USER www-data
USER www-data
RUN docker-php-ext-install pdo pdo_mysql