Skip to content

Instantly share code, notes, and snippets.

@mono0x mono0x/event_websites.rb
Last active Oct 6, 2016

Embed
What would you like to do?
require 'json'
require 'set'
require 'uri'
events = open('lib/data/sanrio_events_calendar.json') {|f| JSON.parse(f.read) }
uris = events['items'].map {|item|
URI.extract(item['description'], [ 'http', 'https' ])
}.flatten.to_set
puts uris.size
uris.to_a.each do |uri|
puts uri
end
hosts = {}
uris.map {|uri| URI.parse(uri).host }.each do |host|
hosts[host] ||= 0
hosts[host] += 1
end
puts
hosts.to_a.select {|k, v| v >= 2 }.sort_by {|k, v| v }.reverse.each do |k, v|
puts "#{k} => #{v}"
end
filtered = uris.map {|uri|
case uri
when %r{\Ahttps?://(ameblo\.jp/[\w\.]+/)}; then $1
when %r{\Ahttps?://(www\.facebook\.com/[\w\.]+/)}; then $1
when %r{\Ahttps?://twitter\.com/(?:#!/)?([\w]+/)}; then "twitter.com/#$1"
else
URI.parse(uri).host
end
}.flatten.map {|prefix| prefix.sub(/\Awww\d*\./, '') }.to_set
filtered.delete 'ameblo.jp'
filtered.delete 'facebook.com/events/'
filtered.delete 'sanrio.co.jp'
filtered.delete 'twitter.com'
filtered.delete 'live.nicovideo.jp'
filtered.delete 'nicovideo.jp'
puts
puts filtered.size
filtered.to_a.sort.each do |uri|
puts uri
end
215
http://www.seibuen-yuuenchi.jp/event_n/?cat=110
https://www.facebook.com/events/1383695575265316/
https://www.facebook.com/events/708498872590099/
https://www.facebook.com/events/1606072719647311/
https://www.facebook.com/events/847480891954497/
http://www.brentcross.co.uk/events/hello-kitty-summer-of-kindness
http://www.eventbrite.com/e/meet-hello-kitty-at-brent-cross-this-summer-tickets-18000053645
http://www.eventbrite.com/e/meet-hello-kitty-at-the-trafford-centre-this-summer-tickets-17980785012
http://www.eventbrite.com/e/meet-hello-kitty-at-cabot-circus-this-summer-tickets-17833265778
http://sacas.net/ns15_common/ns15_eve.html
http://www.sanrio.co.jp/news/event-tokyu-kichijoji-20150808/
https://www.facebook.com/sanriohongkong/photos/a.10152173966967985.1073741828.416168782984/10153723295337985/
http://www.apita-niigatakameda.jp/event/index.html
http://www.sanrio.co.jp/news/event-ktdr-nihonbashi-takashimaya-20150812/
http://makuharishintoshin-aeonmall.com/news/event/3047
https://www.sogo-seibu.jp/fukui/kakutensublist/?article_seq=145824
http://ameblo.jp/vega-seachan/entry-12055429938.html
https://www.facebook.com/evaairwayscorp.jp/posts/1182359538456983
http://www.i-rekihaku.jp/event/2015/kitty/index.html
http://emifull.jp/event_news/pickup_event/2015/08/037825.html
http://www.puroland.jp/footer/performance.html
http://l-tike.com/pc/d1/AA01G03F1.do?rsvFlg=0&txtEvtCd=34232&txtVenueCd=30174&srcID=AA02G01
http://ticket.pia.jp/pia/ticketInformation.do?eventCd=1524368&rlsCd=001&lotRlsCd=
http://blog.itoyokado.co.jp/shop/209/event.html#137489
http://www.ario-ageo.jp/web/event/d778fa3b-0ac1-4409-a8b7-b6f7c4b6ac1b.html
http://avex.jp/dream5/live/detail.php?id=1031904
http://blog.itoyokado.co.jp/shop/205/event.html#137850
http://avex.jp/dream5/live/detail.php?id=1031334
http://www.hellokittylive.com/book-now
https://www.pyramidparrhall.com/whats-on/event/hello-kitty-live/
http://www.ticketmaster.co.uk/event/37004E879CA1321B?brand=cce2&camefrom=CFC_UKAFF_CCE1_CLEAR
http://www.royalandderngate.co.uk/whatson/2015-2016/Derngate/HelloKitty15
http://www.livenation.co.uk/show/731097/hello-kitty-live/wolverhampton/2016-03-29/en
https://www.bhlivetickets.co.uk/Online/default.asp?BOparam::WScontent::loadArticle::permalink=Hello-Kitty-2015&BOparam::WScontent::loadArticle::context_id=
https://southendtheatres.org.uk/online/default.asp?doWork::WScontent::loadArticle=Load&BOparam::WScontent::loadArticle::article_id=A1A833CD-0B1C-43D5-9322-42AB6DD859CD
http://www.trch.co.uk/index.aspx?articleid=29688
http://www.portsmouthguildhall.org.uk/events/hello-kitty-live
http://www.stdavidshallcardiff.co.uk/English/Hello-Kitty-Live-23/10/15/
http://tickets.yorkbarbican.co.uk/single/PSDetail.aspx?psn=29678
http://www.ticketmaster.co.uk/event/36004E8783AB0F16?brand=cce2&camefrom=CFC_UKAFF_CCE1_CLEAR
http://www.sanrio.com/hkfestival/
http://www.orleansarena.com/event-calendar/hellokitty
http://gilariverarena.com/details/?event_id=95
http://www.ticketmaster.com/venueartist/204917/2060229
http://gotochikitty.com/feature/150805_taiwan_manga/
https://www.animelab.com/blog/our-top-4-song-requests-for-i-love-anisong-x-smash/
https://www.facebook.com/DJ.Hello.Kitty.sanrio.license/posts/957440064308032
http://eplus.jp/sys/T1U14P002161979P0050001
http://eterna-takasaki.com/beauty-night-2015/
https://twitter.com/CTS_staff/status/626020128539316224
http://pride-fish.jp/sea2015/index.html
http://ameblo.jp/mitsubishimotorsshowroom/entry-12057718432.html
http://www.grand-tree.jp/web/event/admin_posts_3917.html
https://www.expo2015.jp/about/eventarea/
https://www.facebook.com/expo2015.jp/photos/a.317263885103507.1073741828.304299633066599/488735644622996/
http://www.uny.co.jp/cp/sanrio/
http://nasushiobara-kanko.jp/topics/topics.php?id=24
http://www.nasuhai.co.jp/hotnews/detail.php?n=0362
http://blog.itoyokado.co.jp/shop/099/event.html#138071
http://hiroshimafuchu-aeonmall.com/news/event/434
http://www.takashimaya.co.jp/tamagawa/topics/baby.html#os9421
http://www.atgtickets.com/shows/hello-kitty/aylesbury-waterside-theatre/
http://www.eventimapollo.com/events/detail/hello-kitty-live
http://www.sanrio.co.jp/news/event-gg-natori-20150801/
http://www.post.japanpost.jp/notification/productinformation/2015/0811_01.html
http://www.mallage.com/shobu/shopDetail.php?id=113
http://www.goyah.net/okinawa_event/summer_vacation/yifpgy251q.
https://twitter.com/Hello_Kitty_UK/status/632880498101063680
http://exittunesacademy.jp/budokan/
http://eplus.jp/eta-budokan/
http://kiramune.jp/event/trignal/
https://twitter.com/kirimi_sanrio/status/632906061993787392
http://blog.itoyokado.co.jp/shop/157/event.html#138112
http://avex.jp/dream5/live/detail.php?id=1031335
http://ichinomiya.nha.or.jp/event/2015/08/22/020958.html
http://www.sanrio.co.jp/news/event-sogo-yokohama-20150822/
http://ekimise.jp/news/event/984
http://tokyo-joypolis.com/sanrio.pdf
https://www.facebook.com/events/1697875340424355/
https://www.facebook.com/events/169557050042496/
http://dempagumi.dearstage.com/post/124056060799
http://live.nicovideo.jp/watch/lv225753839
https://www.facebook.com/events/1037172342968094/
http://www.tama-center.net/CMS/00002.html
http://tamashii.jp/event/149/
http://www.chara-hobby.com/
http://classic32fes.jp/index.html
http://classic32fes.jp/entertain.html
http://classic32fes.jp/schedule.html
https://twitter.com/atlrs_official/status/635012503001370624
https://www.facebook.com/events/379276675616817/
https://www.facebook.com/drusillaspark/photos/a.200311726662786.56130.199509586743000/1127593633934586/
http://www.sanrio.co.jp/news/event-dh-seibu-ikebukuro-20150827/
http://www.nasuhai.co.jp/event/2015mymelody.html
http://www.seibuen-yuuenchi.jp/event_n/?cat=118
https://www.facebook.com/events/138459113152833/
https://www.facebook.com/drusillaspark/photos/a.200311726662786.56130.199509586743000/1133795633314386/
https://www.facebook.com/events/1036679289685318/
http://www.aeon.jp/sc/fuso/event/#e52150820170305
https://www.facebook.com/events/925696087473809/
https://twitter.com/drusillaspark/status/638266313924845568
https://www.facebook.com/drusillaspark/photos/a.200311726662786.56130.199509586743000/1133800423313907/
http://www.mikihouseland.jp/place/Kaijou_Dtail.aspx?p1=9
http://www.mikihouseland.jp/place/Kaijou_Dtail.aspx?p1=10
http://www.mikihouseland.jp/place/Kaijou_Dtail.aspx?p1=11
http://www.mikihouseland.jp/place/Kaijou_Dtail.aspx?p1=12
http://www.mikihouseland.jp/place/Kaijou_Dtail.aspx?p1=13
http://www.japan-monkeypark.jp/event/detail.asp?nid=1055&dmy=258113
http://ameblo.jp/vega-seachan/entry-12067616356.html
http://www.doggypark.jp/contents/event/info.php?no=631
http://www.sanrio.co.jp/wp-content/uploads/2015/08/20150825.pdf
http://www.gatecity.jp/plaza/event/?ym=201509
http://www.khb-tv.co.jp/s001/010/010/index.html
https://www.facebook.com/events/1650029831901491/
http://www.drusillas.co.uk/events
https://www.facebook.com/hellokittyrunjapan/posts/1657164747900597
http://www.tohoku-bank.co.jp/news/topics/pdf/150731_sansa.pdf
http://www.yamanashi-kankou.jp/kankou/topics/maruei2015.html
http://www.yamanashi-kankou.jp/kitty/index.html
http://avex.jp/dream5/live/detail.php?id=1033570
http://avex.jp/dream5/live/detail.php?id=1033328
http://www.ario-sapporo.jp/web/event/24af3a49-61d1-417f-9184-78b39523e3ad.html
http://www.sanrio.co.jp/news/event-gg-natori-20150913/
http://sanrio.cocolog-nifty.com/shop/2015/09/913sariogiftgat.html
http://www.sanrio.co.jp/news/kt-art-20150919-1012/
http://www.city.ibaraki-koga.lg.jp/0000004442.html
http://dmdepart.jp/thanks/event/
http://www.tamajack.com/partytrain.html
https://twitter.com/karaage_mayu/status/644181878962913280
http://www.sanrio.co.jp/news/sanriodays-mm-tobu-ikebukuro-20150925/
http://www.centrair.jp/enjoy/event/1197632_1485.html
http://www.centrair.jp/enjoy/event/1197676_1485.html
http://www.aeon.jp/sc/nagoyadomemae/event/#e56150611111653
http://toyota.nha.or.jp/event/2015/09/26/021120.html
http://jra.jp/news/201509/090703.html
http://inazumarock.com/2015/#timetable_page
http://www.post.japanpost.jp/promotion/tegami_hagaki/
http://www.post.japanpost.jp/notification/pressrelease/2015/00_honsha/0821_02.html
http://jra.jp/news/201504nakayama/
https://twitter.com/KittyNagoya/status/645424685098778630
http://www.sanrio.co.jp/news/event-gg-makuhari-20150921/
http://www.sanrio.co.jp/news/event-gg-grantree-musashikosugi-20150922/
http://www.grand-tree.jp/web/event/admin_posts_4384.html
http://sanrio.cocolog-nifty.com/shop/2015/09/922-3afc.html
http://www.hellokittygoaround.com.sg/ticketinfo.html
http://blog.itoyokado.co.jp/shop/106/minichira.html#1
http://www.tonxton.com/event/detail/?event_id=2465&defaultBaseId=2
http://avex.jp/dream5/live/detail.php?id=1034353
http://blog.itoyokado.co.jp/shop/252/event.html#139901
http://avex.jp/dream5/live/detail.php?id=1034352
http://blog.itoyokado.co.jp/shop/153/event.html#139995
https://www.e-oubo.com/ts40/
http://www.sanrio.co.jp/news/event-narita-airport-20151003/
http://www2.t-expo.jp/exhibitors/view/ja/35782/BtoC
https://www.facebook.com/evaairwayscorp.jp/photos/a.1025395084153430.1073741828.1024156250943980/1215076735185263/
http://fukutsu-aeonmall.com/news/event/827
http://www.sanrio.co.jp/news/event-dh-keio-shinjuku-20151001/
http://sanrio.cocolog-nifty.com/shop/2015/09/doraemon-meets-.html
https://www.pref.yamanashi.jp/kankou-k/150217kankou-navigator_top.html
http://www.yamanashi-kankou.jp/blog/2015/09/2-3.php
http://ameblo.jp/emikofruit/entry-12068945817.html
http://yokohama.lalaport.jp/event/10306819_9514.html
http://empmuseum.org/calendar/events/hello-kitty-throws-a-party.aspx
http://www.narita-airport.jp/jp/fun/event/japan/index.html
http://tamadairanomori-aeonmall.com/news/event/267
http://www.nnr.co.jp/kashiikaen/info/detail.php?&no=3296
https://twitter.com/mm_wapi/status/650493839065518080
http://kawasaki-roufuku.net/report/pdf/DOC150916-20150916093656.pdf
http://www.e-a-site.com/event_info/detail/31/654
http://avex.jp/dream5/live/detail.php?id=1034871
http://blog.itoyokado.co.jp/shop/223/event.html#140489
http://tsukuba-aeonmall.com/news/event/734
http://www.jra.go.jp/news/201510/100401.html
http://blog.itoyokado.co.jp/shop/174/event.html#140491
http://www.sanrio.co.jp/news/kt-bcl-mascara-20150924/
http://www.bcl-brand.jp/news/news-1943/
http://www.loft.co.jp/shop_list/detail.php?shop_id=189
https://twitter.com/loft_shibuya/status/650536840294862848
https://www.facebook.com/azul.official/photos/a.100884483332854.1209.100882733333029/894061817348446/
http://cutecube-harajuku.jp/sanrio-vivitix-harajuku/%e3%82%af%e3%83%ad%e3%83%9f%e3%81%a1%e3%82%83%e3%82%93%e2%98%85%e3%82%b9%e3%83%9a%e3%82%b7%e3%83%a3%e3%83%ab%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e9%96%8b%e5%82%ac%e2%98%85
http://sanrio.cocolog-nifty.com/shop/2015/10/sanrio-vivitix-.html
http://www.sanrio.co.jp/news/event-harajuku-20151031/
http://www.sanrio.co.jp/news/event-dj-kt-20151017/
http://sanrio.cocolog-nifty.com/shop/2015/10/post-a3e7-1.html
http://www.tsu-kyotei.com/modules/news2/
http://www.boatrace.jp/stadium_info/2015/10/053784.php
http://tamajack.com/event.html
http://tamajack.com/images/150802/map.pdf
http://www.city.tama.lg.jp/bunka/45/5245/014024.html
http://www.sanrio.co.jp/news/event-meisei-gu-20151031/
http://www.sanrio.co.jp/news/event-meisei-kt-20151101/
http://www.sanrio.co.jp/news/ts-shop-shinjuku-odakyu-20151028/
http://ameblo.jp/kikilala2011/entry-12085836398.html
http://kasugai.nha.or.jp/event/2015/10/24/022154.html
https://twitter.com/cafe_de_miki_d/status/656721349793083392
http://www.omochaoukoku.co.jp/news.php?id=554
http://cafedemiki.jp/wordpress/newsposts/2015/10/112.html
http://www.sanrio.co.jp/news/event-kt-cafedemiki-20151010/
https://twitter.com/sanrio_news/status/652000499948896257
https://twitter.com/cafe_de_miki_d/status/653766517843103744
https://twitter.com/cafe_de_miki_d/status/654470171331989504
http://www.keio.co.jp/news/update/news_release/news_release2015/nr151022_ekidenevent.pdf
http://keio-ekiden.com/event.html
http://ichinomiya.nha.or.jp/event/2015/10/24/022044.html
http://www.alpark.net/event/10311199_12872.html
http://www.alpark.net/event/10311197_12872.html
http://tokyo-skytree.jp/archive/sorakara/news/sorakara-5th-anniversary.html
http://girls-award.com/model
http://kikilala-dreamfunding.com/dream04/
http://www.lalagarden-kawaguchi.com/event/%e7%91%a0%e6%84%9b%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%82%a2live
http://www.sanrio.co.jp/news/event-gg-natori-20151025/
http://natori-aeonmall.com/news/event/1240
http://sanrio.cocolog-nifty.com/shop/2015/10/1025-9a82.html
http://avex.jp/dream5/live/detail.php?id=1035397
http://blog.itoyokado.co.jp/shop/195/event.html#141042
www.facebook.com => 22
www.sanrio.co.jp => 21
twitter.com => 13
blog.itoyokado.co.jp => 10
avex.jp => 9
sanrio.cocolog-nifty.com => 6
ameblo.jp => 5
www.mikihouseland.jp => 5
classic32fes.jp => 3
www.eventbrite.com => 3
www.post.japanpost.jp => 3
www.yamanashi-kankou.jp => 3
www.seibuen-yuuenchi.jp => 2
tamajack.com => 2
jra.jp => 2
www.centrair.jp => 2
www.aeon.jp => 2
ichinomiya.nha.or.jp => 2
www.nasuhai.co.jp => 2
www.grand-tree.jp => 2
eplus.jp => 2
www.ticketmaster.co.uk => 2
www.alpark.net => 2
129
aeon.jp
alpark.net
ameblo.jp/emikofruit/
ameblo.jp/kikilala2011/
ameblo.jp/mitsubishimotorsshowroom/
animelab.com
apita-niigatakameda.jp
ario-ageo.jp
ario-sapporo.jp
atgtickets.com
avex.jp
bcl-brand.jp
bhlivetickets.co.uk
blog.itoyokado.co.jp
boatrace.jp
brentcross.co.uk
cafedemiki.jp
centrair.jp
chara-hobby.com
city.ibaraki-koga.lg.jp
city.tama.lg.jp
classic32fes.jp
cutecube-harajuku.jp
dempagumi.dearstage.com
dmdepart.jp
doggypark.jp
drusillas.co.uk
e-a-site.com
e-oubo.com
ekimise.jp
emifull.jp
empmuseum.org
eplus.jp
eterna-takasaki.com
eventbrite.com
eventimapollo.com
exittunesacademy.jp
expo2015.jp
facebook.com/DJ.Hello.Kitty.sanrio.license/
facebook.com/azul.official/
facebook.com/drusillaspark/
facebook.com/evaairwayscorp.jp/
facebook.com/expo2015.jp/
facebook.com/hellokittyrunjapan/
facebook.com/sanriohongkong/
fukutsu-aeonmall.com
gatecity.jp
gilariverarena.com
girls-award.com
gotochikitty.com
goyah.net
grand-tree.jp
hellokittygoaround.com.sg
hellokittylive.com
hiroshimafuchu-aeonmall.com
i-rekihaku.jp
ichinomiya.nha.or.jp
inazumarock.com
japan-monkeypark.jp
jra.go.jp
jra.jp
kasugai.nha.or.jp
kawasaki-roufuku.net
keio-ekiden.com
keio.co.jp
khb-tv.co.jp
kikilala-dreamfunding.com
kiramune.jp
l-tike.com
lalagarden-kawaguchi.com
livenation.co.uk
loft.co.jp
makuharishintoshin-aeonmall.com
mallage.com
mikihouseland.jp
narita-airport.jp
nasuhai.co.jp
nasushiobara-kanko.jp
natori-aeonmall.com
nnr.co.jp
omochaoukoku.co.jp
orleansarena.com
portsmouthguildhall.org.uk
post.japanpost.jp
pref.yamanashi.jp
pride-fish.jp
puroland.jp
pyramidparrhall.com
royalandderngate.co.uk
sacas.net
sanrio.cocolog-nifty.com
sanrio.com
seibuen-yuuenchi.jp
sogo-seibu.jp
southendtheatres.org.uk
stdavidshallcardiff.co.uk
t-expo.jp
takashimaya.co.jp
tama-center.net
tamadairanomori-aeonmall.com
tamajack.com
tamashii.jp
ticket.pia.jp
ticketmaster.co.uk
ticketmaster.com
tickets.yorkbarbican.co.uk
tohoku-bank.co.jp
tokyo-joypolis.com
tokyo-skytree.jp
tonxton.com
toyota.nha.or.jp
trch.co.uk
tsu-kyotei.com
tsukuba-aeonmall.com
twitter.com/CTS_staff/
twitter.com/Hello_Kitty_UK/
twitter.com/KittyNagoya/
twitter.com/atlrs_official/
twitter.com/cafe_de_miki_d/
twitter.com/drusillaspark/
twitter.com/karaage_mayu/
twitter.com/kirimi_sanrio/
twitter.com/loft_shibuya/
twitter.com/mm_wapi/
twitter.com/sanrio_news/
uny.co.jp
yamanashi-kankou.jp
yokohama.lalaport.jp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.