Easy facebook reupload
[nicefish@nicepc /tmp]$ wget "https://scontent-sjc3-1.xx.fbcdn.net/v/t1.0-9/65451232_2167607030004889_4540696943533228032_n.jpg?_nc_cat=XXX&_nc_sid=XXXXXX&_nc_ohc=XXXXXXXXXXXXXXXX&_nc_ht=scontent-sjc3-1.xx&oh=XXXXXXXXXXXXXXXXXXXXXXx&oe=XXXXXX"
--2020-06-25 06:38:30-- https://scontent-sjc3-1.xx.fbcdn.net/v/t1.0-9/65451232_2167607030004889_4540696943533228032_n.jpg?_nc_cat=XXX&_nc_sid=XXXXXX&_nc_ohc=XXXXXXXXXXXXXXXX&_nc_ht=scontent-sjc3-1.xx&oh=XXXXXXXXXXXXXXXXXXXXXXx&oe=XXXXXX
Resolving scontent-sjc3-1.xx.fbcdn.net (scontent-sjc3-1.xx.fbcdn.net)... 2a03:2880:f031:19:face:b00c:0:3, 157.240.22.25
Connecting to scontent-sjc3-1.xx.fbcdn.net (scontent-sjc3-1.xx.fbcdn.net)|2a03:2880:f031:19:face:b00c:0:3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38346 (37K) [image/jpeg]
Saving to: ‘65451232_2167607030004889_4540696943533228032_n.jpg?_nc_cat=XXX&_nc_sid=XXXXXX&_nc_ohc=XXXXXXXXXXXXXXXX&_nc_ht=scontent-sjc3-1.xx&oh=XXXXXXXXXXXXXXXXXXXXXXx&oe=XXXXXX’
65451232_21676070 100%[==========>] 37.45K --.-KB/s in 0.01s
2020-06-25 06:38:30 (3.79 MB/s) - ‘65451232_2167607030004889_4540696943533228032_n.jpg?_nc_cat=XXX&_nc_sid=XXXXXX&_nc_ohc=XXXXXXXXXXXXXXXX&_nc_ht=scontent-sjc3-1.xx&oh=XXXXXXXXXXXXXXXXXXXXXXx&oe=XXXXXX’ saved [38346/38346]
[nicefish@nicepc /tmp]$ unzuck.py "65451232_2167607030004889_4540696943533228032_n.jpg?_nc_cat=XXX&_nc_sid=XXXXXX&_nc_ohc=XXXXXXXXXXXXXXXX&_nc_ht=scontent-sjc3-1.xx&oh=XXXXXXXXXXXXXXXXXXXXXXx&oe=XXXXXX"
65451232_2167607030004889_4540696943533228032_n.jpg
[nicefish@nicepc /tmp]$ fish-upload 65451232_2167607030004889_4540696943533228032_n.jpg
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--100 38576 0 0 100 38576 0 167k --:--:-- --:--:-- --:--100 38576 0 0 100 38576 0 162k --:--:-- --:--:-- --:--:-- 161k
https://wiki.wetfish.net/upload/e55e1957-7bd7-5580-7afc-d360f941174f.jpg
[nicefish@nicepc /tmp]$ cat ~/bin/unzuck.py
#!/usr/bin/env python3
from urllib.parse import urlparse
import sys
import os.path
import os
def main():
fn = urlparse(sys.argv[1], scheme='file').path
fn = os.path.basename(fn)
os.rename(sys.argv[1], fn)
print(fn)
if __name__ == "__main__":
main()