time.sleep(1)
soup = BeautifulSoup(driver.page_source, features="lxml")
for i in range(57, 58):
# ...
soup = BeautifulSoup(driver.page_source, features="lxml")
# ... Или сделать хотя бы какой-то контраст между ними?
@bot.command(pass_context=True)
@commands.has_permissions(administrator=True)
async def clean(ctx, limit: int):
await ctx.channel.purge(limit=limit)
await ctx.send('Cleared by {}'.format(ctx.author.mention))
await ctx.message.delete()
@clean.error
async def clear_error(ctx, error):
if isinstance(error, commands.MissingPermissions):
await ctx.send("You cant do that!") Грубо говоря, необходимо сделать "видеостену" в Джанго, на которой бы выводились потоки со всех камер.
<div>
<img src="{% url 'stream_1' %}" alt="Stream 1" width="1024" height="768"/>
<img src="{% url 'stream_2' %}" alt="Stream 2" width="1024" height="768"/>
</div>path('video/stream_1/', views.video_stream, {'camera_id': 0}, name='stream_1'),
path('video/stream_2/', views.video_stream, {'camera_id': 1}, name='stream_2'), i? Попробуйте так:for (let i = 0, len = match.length; i < len; i += 4) {
parts.push(match.substring(i, i + 4));
}addEventListener.oninput = function(). Попробуйте так:inputus[i].addEventListener('input', () => {
this.value = cc_format(this.value);
});for (let i = 0; i < inputus.length; i++) {
inputus[i].addEventListener('input', function() {
this.value = cc_format(this.value);
}); Почему переменная all_participants принимает только 10000 значений, а не больше при парсинге?
// wp_enqueue_script( 'slick', get_template_directory_uri() . '/assets/js/slick.min.js', array(jquery), 'null', true );
wp_enqueue_script( 'slick', get_template_directory_uri() . '/assets/js/slick.min.js', array('jquery'), null, true );// wp_enqueue_script( 'slick', get_template_directory_uri() . '/assets/js/slick.js', array(jquery), 'null', true );
wp_enqueue_script( 'slick', get_template_directory_uri() . '/assets/js/slick.min.js', array(jquery), 'null', true );<?php
add_action('wp_enqueue_scripts', function () {
// styles
wp_enqueue_style('style', get_template_directory_uri() . '/assets/css/style.css');
wp_enqueue_style('media', get_template_directory_uri() . '/assets/css/media.css');
wp_enqueue_style('slick-style', get_template_directory_uri() . '/assets/css/slick.css');
// jquery
wp_deregister_script('jquery');
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js', [], null, true);
wp_enqueue_script('jquery');
// scripts
wp_enqueue_script('slick', get_template_directory_uri() . '/assets/js/slick.min.js', ['jquery'], null, true);
wp_enqueue_script('main', get_template_directory_uri() . '/assets/js/main.js', ['jquery'], null, true);
});
add_theme_support('post-thumbnails');
add_theme_support('title-tag');
add_theme_support('custom-logo');
?> lst = []
while True:
item = input('Введите 6-значное число: ')
if len(item) != 6:
break
lst.append(int(item))
# sorting
lst.sort()
prev = None
for num in lst:
nums = str(num)[:3] # first 3 numbers
if nums != prev:
print() # print empty row
prev = nums
print(num, end=' ') а если запустить цикл повторно, файл в котором хранятся просмотренные фильмы перезаписывается
with open('iwatch.txt', 'w', encoding='utf-8') as f:with open('iwatch.txt', 'a', encoding='utf-8') as f:import random
import json
# file
try:
with open('films.json', 'r', encoding='utf-8') as f:
films = json.load(f)
except FileNotFoundError:
films = {}
# save
def save(films):
with open('films.json', 'w', encoding='utf-8') as f:
json.dump(films, f, ensure_ascii=False, indent=4)
# main
def main():
while True:
random_film_key = random.choice(list(films))
film_value = films.get(random_film_key).replace(',', '\n')
print("Фильм: " + random_film_key, "Описание фильма: " + film_value, sep='\n')
# а где вариант 3 (ya est' Grut)?
q = input("Ты смотрел этот фильм? да - 1, нет - 0, выход - любая другая клавиша \n")
if q == '1':
with open('iwatch.txt', 'a', encoding='utf-8') as f:
f.write(random_film_key + '\n')
del films[random_film_key]
save(films)
elif q == '0':
continue
else:
break
# run
main() Если не сложно, добавьте пример самого графика. Как добавить туда значения - я как-нибудь доковыляю сам.
То есть надо было сначала спарсить семантическое ядро у конкурентов, кластеризировать, и, исходя из этого, делать стуктуру.
В связи с этим есть вопрос: целесообразно и возможно ли переделать всю структуру сайта? У страниц же будут другие адреса, будет путаница в индексации и множество ошибок.
Или проще сделать новый сайт на новом домене?