SyntaxError: invalid syntax, что это? — Хабр Q&A
https://qna.habr.com/q/66257931.08.2019 · import random import linecache import vk_api import requests from bs4 import BeautifulSoup import time from vk_api import VkUpload import configparser import logging import os from datetime import datetime def get_files(path): files = [f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))] for f in files: if not f.startswith('.'): yield f def get_poster(): """ …