4
我有一堆我想要清理的URL。它們都包含UTM參數,在這種情況下這些參數不是必需的,或者更有害。例如:如何從URL中刪除Google跟蹤參數(UTM)?
http://houseofbuttons.tumblr.com/post/22326009438?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+HouseOfButtons+%28House+of+Buttons%29
所有潛在參數都以utm_
開頭。 如何使用ruby腳本/結構輕鬆刪除它們而不破壞其他潛在的「良好」URL參數?
+1採取的設計作業工具的優勢。 –
@steenslag礦是一個小小的獨立腳本。它給了我'未定義的方法'decode_www_form'爲URI:Module(NoMethodError)'。可能是什麼原因? – myhd
@myhd看起來像在Ruby 1.9.2中添加了方法 – steenslag