stackexchange-favs-to-pinboard

Check-in [d45e2bb088]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Typical, spot something I missed as soon as I push
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: d45e2bb088e94695921417ea4544615e488eef35da67314ce894a717c362d7e4
User & Date: atomicules@lavabit.com 2013-02-17 23:08:35
Context
2015-04-06
10:00
Improvements to Pinboard code. Now a class, uses json and logger I used the Pinboard code from this script as a basis for some Jekyll syndication code I'm putting together elsewhere. I then made changes/improvements to it which I've decided to port back over here. I guess eventually I'll end up making my own Pinboard gem. Maybe. Some corresponding changes to the script were necessary such as command line arguments for Pinboard username and token, and re-ordering of method arguments. check-in: c8517a3a50 user: base@atomicules.co.uk tags: origin/master, trunk
2013-07-16
11:45
Create LICENSE check-in: 2bbacd3320 user: atomicules@lavabit.com tags: origin/master, trunk
2013-02-17
23:08
Typical, spot something I missed as soon as I push check-in: d45e2bb088 user: atomicules@lavabit.com tags: origin/master, trunk
23:02
Initial commit: Works for me, your mileage may vary, etc, etc check-in: 6beb1d0a21 user: atomicules@lavabit.com tags: origin/master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to stackexchange-favs-to-pinboard.rb.

48
49
50
51
52
53
54

55
56
57
58
59
60
61
		sleep $rate_limit
	end
	if $rate_limit > 60
		puts "Rate limit has exceeded 60 secs, let's try again another time"
		quit
	elsif attempts > 3
		puts "Failed 3 times to save #{url}, bombing out"

	end
end

if defined?(StackID) and defined?(Token)
	$rate_limit = 3
	parsed = get_sites(StackID)
	parsed["items"].each do |site|







>







48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
		sleep $rate_limit
	end
	if $rate_limit > 60
		puts "Rate limit has exceeded 60 secs, let's try again another time"
		quit
	elsif attempts > 3
		puts "Failed 3 times to save #{url}, bombing out"
		quit
	end
end

if defined?(StackID) and defined?(Token)
	$rate_limit = 3
	parsed = get_sites(StackID)
	parsed["items"].each do |site|