瀏覽代碼

Add support for hashbang fragments on Twitter links

master
JustAnotherArchivist 4 年之前
父節點
當前提交
7c389f1fef
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      website-extract-social-media

+ 2
- 2
website-extract-social-media 查看文件

@@ -30,8 +30,8 @@ function fetch_n_extract {
) \ ) \
>( >(
# Twitter # Twitter
grep -Poi 'twitter\.com/(hashtag/)?[^/ <"'"'"']+' | \
sed 's,^,https://,' | \
grep -Poi 'twitter\.com/(#!/)?(hashtag/)?[^/ <"'"'"']+' | \
sed 's,^twitter\.com/#!/,twitter.com/,; s,^,https://,' | \
grep -vi -e '^https://twitter\.com/home\?' -e '^https://twitter\.com/widgets\.js$' -e '^https://twitter\.com/share\?' -e '^https://twitter\.com/intent$' | \ grep -vi -e '^https://twitter\.com/home\?' -e '^https://twitter\.com/widgets\.js$' -e '^https://twitter\.com/share\?' -e '^https://twitter\.com/intent$' | \
sed 's,\([?&]\)ref_src=[^&]\+&\?,\1,; s,?$,,' sed 's,\([?&]\)ref_src=[^&]\+&\?,\1,; s,?$,,'
) \ ) \


Loading…
取消
儲存