Web crawler × scheduling × content extraction

Multi-Site Notice Collection and Content Extraction

A property management company checks more than ten utility provider websites every week and collects notices of water outages, power outages, gas outages and road work. The tool scans each website on a schedule, takes only notices that have not been fetched before, downloads the attachments with consistent file names, and organizes the notice content into a structured table for manual checking.

12 sourcesWebsites of Unit-A to Unit-L
Once a weekScheduled scan at a fixed time
5 fieldsCategory, start, end, area, reason

Terms

Fetched list

Records the URL and title of each notice already downloaded. Each scan compares against the list, and only notices not on the list count as new.

File naming rule

The name is made of category code, source, notice date and a daily sequence number, in that order. Example: W_Unit-A_20261109_01.pdf, where W stands for water outage.

Manual check table

Lists the fields a language model extracted from the notice text. Notices with an empty or uncertain field are marked as needing a manual check, and the fields can be corrected directly.

Original problem

Before

  • Staff opened each provider website one by one, at irregular intervals, to look for new notices.
  • Each person downloaded and named attachments individually, so file names of the same kind of file followed different formats.
  • The start time, end time and affected area of each notice were read from the full text and entered by hand.

After

  • A scheduled job scans all sources at a fixed time each week, compares against the fetched list and takes only new notices.
  • Attachments are named by the file naming rule and filed in the folder for their category.
  • A language model extracts the fields and a check table is produced. Extraction does not succeed for every notice, and the parts that need a manual check are marked in the table.

Workflow

1Scheduled scanWindows Task Scheduler starts the job at a fixed time each week, and the notice page of each source is read in turn.
2Compare with fetched listParses the notice list, compares it with the fetched list and keeps only new notices.
3Download, name and fileDownloads attachments, names them by category code, source, date and sequence number, and places them in the matching folder.
4Browsing windowLists new notices. A notice can be marked as read or archived, and a source can be set to stop reminders.
5Email reportSends a result email after each run, including runs with no new notices.
6Content extraction (prototype)A language model extracts the category, start and end times and affected area, converts them to a format that can be imported into a database, and a check table is produced.

Interactive demo: run this week's scan and check the extracted fields

Notice collection and checkingSynthetic data. The demo uses pre-prepared extraction results and calls no external service.
Scan log
Report email preview
Sources scanned—
Notices so far—
Unread—
Needs manual check—
Notice list
Notice content and extracted fields

Outcome and technology

No missed or repeated notices

Each run compares against the fetched list and processes only new notices. The scan result of each source is logged line by line.

Consistent file names

Attachments are named by category code, source, date and sequence number, and filed in the matching category folder.

Extracted fields can be corrected

Content extraction is currently a prototype. Fields of some notices cannot be determined, are marked in the check table, and are filled in by hand before export.

PythonrequestsBeautifulSoupWindows Task SchedulerLanguage-model content extractionopenpyxlEmail notification