瀏覽代碼

Fix URL extraction from Facebook profile overview pages

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

+ 1
- 1
social-media-extract-profile-link 查看文件

@@ -25,7 +25,7 @@ function fetch_n_extract {
elif grep -qF 'id="pagelet_loggedout_sign_up"' <<< "${page}"
then
# Profile overview only
grep -Po 'href="https://l\.facebook\.com/l\.php\?u=\K[^&]+' <<<"${page}" | sed 's,%3A,:,g; s,%2F,/,g'
grep -Po '<div\s([^<]*\s)?id\s*=\s*"pagelet_contact".*<div\s([^<]*\s)?id\s*=\s*"bottomContent"' <<<"${page}" | grep -Po 'href="https://l\.facebook\.com/l\.php\?u=\K[^&]+' | sed 's,%3A,:,g; s,%2F,/,g'
fi
elif [[ "${url}" == *'instagram.com/'* ]]
then


Loading…
取消
儲存