← 返回
未分类

Nyc 311 Reporter

Automate NYC 311 service request filing by browsing the 311 portal with Playwright. Scrapes complaint categories, finds forms, fills them with user data, and...
使用 Playwright 自动浏览 NYC 311 门户网站,抓取投诉类别、定位表单并填写用户信息,以自动提交服务请求。
pranjalminocha pranjalminocha 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 299
下载
💾 1
安装
1
版本
#latest

概述

NYC 311 Reporter

Automates NYC 311 complaint filing using Playwright for browser automation.

Workflow

Step 1: Read User Complaint

Extract from natural language:

  • Location — Where is the issue?
  • Description — What is happening?
  • Vehicle/Details — Car make, model, color, plate if available
  • Duration — How long has it been there?
  • Photos — Does the user have photos?

Step 2: Scrape Categories

Run the browser script to explore available complaint categories:

python3 scripts/browse_311.py scrape

Step 3: Find the Right Form

For fire hydrant complaints:

python3 scripts/browse_311.py find

Step 4: Fill and Submit

Run with your complaint details:

Dry run (preview only):

python3 scripts/browse_311.py submit \
  --location "726 DeKalb Avenue, Brooklyn, NY" \
  --vehicle "Gray Nissan Micra" \
  --duration "10 hours" \
  --name "Ricardo Díaz" \
  --email "ricardo@example.com" \
  --phone "+19299990000"

Actual submission:

python3 scripts/browse_311.py submit \
  --location "726 DeKalb Avenue, Brooklyn, NY" \
  --vehicle "Gray Nissan Micra" \
  --duration "10 hours" \
  --name "Ricardo Díaz" \
  --email "ricardo@example.com" \
  --phone "+19299990000" \
  --submit

User Profile

Store user information in assets/config.json:

{
  "name": "Ricardo Díaz",
  "phone": "+19299990000",
  "email": "ricardo@example.com",
  "home_address": "726 DeKalb Avenue",
  "work_address": "726 DeKalb Avenue",
  "apartment": "1E",
  "preferred_contact": "email",
  "notify_updates": true
}

Scripts

  • scripts/browse_311.py — Main automation script:
  • scrape — List all complaint categories
  • find — Find the fire hydrant/parking form
  • submit — Fill and optionally submit the form

Installation

pip install -r requirements.txt
playwright install chromium

Notes

  • Screenshots are saved to /tmp/ for review
  • The script handles JavaScript-heavy pages
  • Run without --submit first to verify the form fills correctly
  • If 311 portal has technical issues, the script will report errors

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 17:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 275 📥 101,204
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 142,428
data-analysis

Stock Analysis

udiedrichsen
利用Yahoo Finance数据深度分析股票和加密货币。支持投资组合管理、关注列表与提醒、股息分析、八维度股票评分、热门趋势扫描(热点扫描器)及谣言/早期信号检测。适用于股票分析、投资组合追踪、财报反应、加密货币监控、热门股票发现及在主流
★ 281 📥 58,037