brianleect / etherscan-labels

Full label data dump of top EVM chains in JSON/CSV.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QOL] [RetrieveAll] Skip if exist/no change

brianleect opened this issue · comments

commented

Currently every run of retrieveAll will get ALL labels again regardless if there was any change.

Possible soln is to either

  1. Skip if json/csv already exists (Easy but will miss updates)
  2. Check length of JSON/CSV vs indicated length in labelcloud (Slightly more troublesome but will capture changes)
commented

Implemented skip if exist for retrieval of all. In the case we want updates, makes sense to retrieveAll again.

Currently skip retrieve if exists helps save time if we crash halfway and don't wish to restart from the first label.