Gen2WebText

Derivative of DLoggedWebTextPlus that starts from one URL, extracts content-focused links and summaries, and logs outputs using CommonCode FolderNavigator into datastore3 mine/domain/yyyy/mm/dd.

DaveSteadman Updated

File contents

Gen2WebText

Gen2 derivative of DLoggedWebTextPlus, with centralized folder resolution via CommonCode/FolderNavigator.py.

Execution

python gen2_web_text.py --max-links --words --timeout-ms

Arguments

  • domain required alphabetic string only A-Z or a-z
  • url required start URL
  • --max-links optional default 8 range 1 to 25
  • --words optional default 200 range 80 to 400
  • --timeout-ms optional default 15000

Output

On success returns JSON with:

  • domain
  • url
  • start_page_summary
  • start_page_words
  • links_processed
  • results with rank, anchor_text, url, page_summary, page_words, page_status
  • log_path
  • status

On error returns JSON with:

  • domain
  • url
  • error
  • results
  • links_processed
  • log_path
  • status

Logging

Writes to: {OPENCLAW_ROOT}/data/datastore3/01-Mine//YYYY/MM/DD/{PageName}.txt

Path resolution is handled by FolderNavigator.from_fixed_point() and get_today_path(area="mine", domain=..., create=True).

DaveSteadman/OpenClawTest/tree/main/Workspace/openclaw/workspace/Skills/Gen2WebText commit fa1d556e1c

Frequently asked questions

npx skillmds@latest add davesteadman/gen2webtext