TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

Пронајдени 6 слични објави

Пребарај: #playwright

当前筛选 #playwright清除筛选
GitHub Trends

@githubtrending · Post #15450 · 29.01.2026 г., 18:00

#other#playwright Playwright CLI is a simple command-line tool for browser automation that works best with coding agents like Claude or GitHub Copilot. Install it globally with `npm install -g @playwright/cli@latest`, then use commands like `open`, `type`, `click`, `screenshot` to control browsers efficiently without loading heavy page data. It saves tokens for faster AI tasks on large codebases. You benefit by automating web tests, taking screenshots, and managing sessions quickly, making your coding and testing workflows smoother and more reliable. https://github.com/microsoft/playwright-cli

AppPie

@AppPie · Post #2291 · 31.12.2024 г., 04:02

#Developers Shortest: AI 驱动的自然语言测试框架 🔗GitHub Shortest 是一个基于 Playwright 的端到端测试框架,允许你用自然语言编写测试用例,由 AI 处理具体实现。 主要特点 • 自然语言测试:用日常语言描述测试场景 • AI 驱动执行:使用 Claude API 处理测试实现 • Playwright 基础:稳定可靠的测试执行 • GitHub 集成:支持双因素认证 • 邮件验证:集成 Mailosaur 开源许可证 MIT license。 #GitHub#OpenSource#Testing#AutomatedTesting#AI#Playwright 📮 频道 @AppPie​​​​​​​​​​​​​​​​

GitHub Trends

@githubtrending · Post #15527 · 28.02.2026 г., 11:30

#typescript#fingerprinting#playwright#puppeteer#scraping#typescript Fingerprint-suite is a toolkit that generates and injects realistic browser fingerprints into automated browsers like Playwright and Puppeteer. It includes four modular packages: header-generator for HTTP headers, fingerprint-generator for browser fingerprints, fingerprint-injector for injection, and a Bayesian network for realistic fingerprint creation. Since websites increasingly use fingerprinting to track and identify users, this tool helps your web scrapers avoid detection by mimicking real browser behavior. You can customize fingerprints by device type and operating system, making your automated browsing appear completely legitimate to anti-bot systems. https://github.com/apify/fingerprint-suite

✈️ OpenCLI | 让 AI 直接调用网站和桌面应用,这个 CLI 野心有点大 🏷 检索标签:#OpenCLI#AIAgent#CLI#Playwright#Electron#AI#openclaw ⭐️ 详情介绍:OpenCLI 是个 AI Native 的命令行项目,把原本只能手点的网站、本地工具、Electron 应用,统统改造成 AI 能直接调用的 CLI。它 复用你自己的 Chrome 登录状态 去操作网站,避免风控 像 B站、知乎、小红书、X、Reddit、YouTube 这些站点,还有 gh、docker 这类本地工具 都支持;再加上 explore 自动摸功能、synthesize 生成适配器、动态注册命令,很多原本得自己慢慢弄得东西接,它先帮你干起来 📖GitHub · OpenCLI 😌频道 |🙂群聊 |😋中文包 |☺️搜索

GitHub Trends

@githubtrending · Post #15152 · 17.09.2025 г., 13:30

#typescript#agent#ai#ai_agents#ai_tools#automation#browser#browser_automation#browser_use#chrome_extension#comet#dia#extension#manus#mariner#multi_agent#n8n#nano#opensource#playwright#web_automation Nanobrowser is a free, open-source Chrome extension that uses multiple AI agents to automate complex web tasks directly in your browser, keeping your data private since everything runs locally. It supports many AI language models, lets you customize which models handle different tasks, and offers an easy chat interface to control and track automation. You can automate repetitive tasks, ask follow-up questions, and review past interactions without coding. It works best on Chrome and Edge and is a cost-effective alternative to expensive AI automation tools, giving you powerful, flexible web automation with full control and privacy. https://github.com/nanobrowser/nanobrowser

GitHub Trends

@githubtrending · Post #15520 · 24.02.2026 г., 14:30

#python#ai#ai_scraping#automation#crawler#crawling#crawling_python#data#data_extraction#mcp#mcp_server#playwright#python#scraping#selectors#stealth#web_scraper#web_scraping#web_scraping_python#webscraping#xpath Scrapling is a fast Python web scraping tool that fetches pages, bypasses anti-bot blocks like Cloudflare, and adapts to site changes by auto-finding elements. Use simple CSS/XPath selectors, spiders for big crawls with pause/resume, proxy rotation, and CLI—no code needed sometimes. Install via pip; it's memory-light and beats others in speed. You save time fixing broken scrapers, scrape reliably at scale, cut costs with AI tools, and focus on using data for leads, prices, or research. https://github.com/D4Vinci/Scrapling