1
0
mirror of https://github.com/dkhamsing/open-source-ios-apps.git synced 2024-12-23 06:48:33 +01:00

[script] check titles, descriptions, categories

This commit is contained in:
Daniel Khamsing 2016-08-05 12:47:23 -07:00
parent cae0484b9b
commit f90fc58986

View File

@ -1,7 +1,7 @@
require_relative 'osia_helper' require_relative 'osia_helper'
OUTPUT = 'check-links.txt' OUTPUT = 'check-unique.txt' # should be unique
HP = 'check-homepages.txt' HP = 'check-links.txt' # allow dupes
def apps_archived(apps) def apps_archived(apps)
a = apps.select {|a| a['tags'] != nil }.select {|b| b['tags'].include?'archive'} a = apps.select {|a| a['tags'] != nil }.select {|b| b['tags'].include?'archive'}
@ -27,6 +27,13 @@ File.open(OUTPUT, 'w') { |f| f.puts links }
hp = [] hp = []
active.each do |z| active.each do |z|
hp.push z['homepage'] unless z['homepage'].nil? hp.push z['homepage'] unless z['homepage'].nil?
hp.push z['title'] unless z['title'].nil?
hp.push z['description'] unless z['description'].nil?
end
c = j['categories']
c.each do |z|
hp.push z['title']
end end
hp.each_with_index { |z, i| puts "#{i+1} #{z}" } hp.each_with_index { |z, i| puts "#{i+1} #{z}" }