Просмотр исходного кода

Fix decoding of links on Facebook profiles

master
JustAnotherArchivist 4 лет назад
Родитель
Сommit
236278f0b4
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      social-media-extract-profile-link

+ 1
- 1
social-media-extract-profile-link Просмотреть файл

@@ -21,7 +21,7 @@ function fetch_n_extract {
if grep -qF '"tab_home"' <<<"${page}"
then
# Publicly accessible profile
grep -Po '"website_url":"\K[^"]+' <<<"${page}" | sed 's,\\/,/,g' | awk '!seen[$0]++'
grep -Po '"website_url":\K"[^"]+"' <<<"${page}" | python3 -c 'import json, sys'$'\n''for line in sys.stdin:'$'\n'' print(json.loads(line))' | awk '!seen[$0]++'
elif grep -qF 'id="pagelet_loggedout_sign_up"' <<< "${page}"
then
# Profile overview only


Загрузка…
Отмена
Сохранить