浏览代码

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


正在加载...
取消
保存