33 lines
4.0 KiB
Python
33 lines
4.0 KiB
Python
from pathlib import Path
|
|
import json,re
|
|
P=Path(__file__).resolve().parents[2];d=P/'docs/rebuild-v2/outbound-links.json';x=json.loads(d.read_text())
|
|
context_rules=[
|
|
('pr-realt.com.ua','Paid real-estate insertion in FAQ2011 footer, anchor дома в ворзеле; unrelated to operation Q&A. Removed without altering technical questions.'),
|
|
('jazztravel.com.ua','Paid Thai hotel booking anchor in compatibility/support footer; no connection to listed USB camera modes. Removed.'),
|
|
('playland.com.ua','Paid PSP3008 shop insertion in support footer, unrelated game-console product; removed.'),
|
|
('protivotok.net','Paid swimming-pool equipment insertion in support footer, unrelated to camera compatibility; removed.'),
|
|
('paradcasino.com','Casino paid anchor inside dealer page; removed, never treated as historical technical body.'),
|
|
('new-wind.ru','Household air-conditioner sales insertion in dealer page; removed as unrelated advertising.'),
|
|
('videoreg-samples.narod.ru','Original linked sample gallery: full decoded JPEGs copied locally without template runtime. This exact remote file/link is omitted to avoid partial/dead remote loads; corresponding local images and unresolved file counts are recorded in sample-gallery-inventory.json.'),
|
|
('avtourist','Old legal-promotion/recommendation banner; no actual legal article body recovered here. Banner omitted; legal claims not republished as advice.'),
|
|
('club4x4.ru','Travel/expedition reality-show source mention, legitimate contextual link rather than casino insertion. Not retained in technical operation text because no dependent factual passage is copied; remains an internal recovery lead.'),
|
|
('autoreview.ru','Legitimate period press review source link; not currently used as a factual source in edited body. Kept in internal recovery inventory rather than silently importing an unverified article.'),
|
|
('ksytal.ru','Separate GSM alarm product partner mention on home page. No corresponding technical comparison/body is republished; commercial cross-promotion removed.'),
|
|
('carintst.com','Historic paid/partner installation studio sidebar, not an installation instruction or image attribution; removed.'),
|
|
('invista.org','Old reseller shop sidebar for buying SVK; no technical dependency, obsolete purchase route removed.'),
|
|
('autoprofi2000.ru','Old installer/dealer promotion; no copied installation tutorial requiring attribution, removed.'),
|
|
('b-tuning.ru','Historic tuning/installer promotion, no technical body attribution or guide; removed.'),
|
|
('mak-studia.ru','Historical installation/dealer contact; not published as active sales route.'),
|
|
('autoset.ru','Old commercial partner banner/link, not the source of edited technical facts; removed.'),
|
|
('talks.mark-itt.ru','External discussion reference in recovered forum context; thread content not recovered/used as authority. Technical explanation derives from the original local posts; remote link omitted pending recovery.'),
|
|
('earth.google.com','Historical Google Earth download/support pointer for viewing track data. Product version URL not verified; edited article preserves KML/KMZ file purpose without presenting this obsolete link as a current download.'),
|
|
('fotki.yandex.ru','Retired original map-photo host; original demonstration context retained, link not represented as a working map or recovered image.'),
|
|
]
|
|
for item in x['links']:
|
|
for needle,reason in context_rules:
|
|
if needle in item['destination']:item['reason']=reason;item['decision']='remove-from-publication';break
|
|
if 'narod.yandex.ru/userforum' in item['destination']:item['reason']='Legacy guestbook/forum interaction, no recovered article body; runtime/contact utility omitted.'
|
|
if re.search(r'yandex.ru/(?:cy|cycounter)',item['destination']):item['reason']='Citation-index badge/counter tracking in template, unrelated to technical reading; removed.'
|
|
x['scope']='All actual chosen/supplemental source HTML attributes and inline URLs. Per-context editorial decisions; built/source and rendered DOM reports are separate evidence stages.'
|
|
d.write_text(json.dumps(x,ensure_ascii=False,indent=2)+'\n')
|