Introduction
Introduction Statistics Contact Development Disclaimer Help
Add user agent header to imdb. They hate curl. - annna - Annna the nice friendl…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 702d12a1a2967f7a3fdc73b8115ff6b95f1aa680
parent 7300e1f658b524573648c0c10721e5c18abd0d57
Author: Annna Robert-Houdin <[email protected]>
Date: Thu, 22 Dec 2022 21:07:42 +0100
Add user agent header to imdb. They hate curl.
Diffstat:
M imdb2gopherbay | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/imdb2gopherbay b/imdb2gopherbay
@@ -40,7 +40,9 @@ imdburi="$1"
#printf "%s\n" "${title}"
# Evil_Bob Ver2: Thanks!
-curl -H 'Accept-Language: en' -s "${imdburi}" \
+curl -H 'Accept-Language: en' \
+ -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/201001…
+ -s "${imdburi}" \
| extractjson | sed 1q | json2tsv | LC_ALL=C awk '
BEGIN {
FS = OFS = "\t";
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.