Browse Source

Fix URL extraction from Facebook profile overview pages

master
JustAnotherArchivist 4 years ago
parent
commit
318183148e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      social-media-extract-profile-link

+ 1
- 1
social-media-extract-profile-link View File

@@ -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…
Cancel
Save