mu
change
commit 57dded2af9aafcc1ea396376fe1d188fcedf45c0
author Alpha Chen <alpha@kejadlen.dev>
date
parent 336677af
diff --git a/pinboard/.ruby-version b/pinboard/.ruby-version
index 8c50098..a3ec5a4 100644
--- a/pinboard/.ruby-version
+++ b/pinboard/.ruby-version
@@ -1 +1 @@
-3.1
+3.2
diff --git a/pinboard/refresh-pinboard-errors.rb b/pinboard/refresh-pinboard-errors.rb
index 2522718..78981e3 100755
--- a/pinboard/refresh-pinboard-errors.rb
+++ b/pinboard/refresh-pinboard-errors.rb
@@ -37,9 +37,11 @@ fill_in "username", with: ENV.fetch("PINBOARD_USERNAME")
 fill_in "password", with: ENV.fetch("PINBOARD_PASSWORD")
 click_button "log in"
 
-[ 400, 429, 500 ].each do |error_code|
+[ 400, 404, 429, 500 ].each do |error_code|
+  puts "Checking error code #{error_code}"
   visit "https://pinboard.in/u:kejadlen/code:#{error_code}"
 
+  # TODO: Try text()='↺' instead?
   all(:xpath, "//a[@title='Click to re-crawl this link']").each do |link|
     bookmark = link.find(:xpath, "../a[starts-with(@class, 'bookmark_title')]")
     puts "Re-crawling #{bookmark.text}"