Tråd bedømmelse:
  • 0 Stemmer - 0 Gennemsnit
  • 1
  • 2
  • 3
  • 4
  • 5
Bulk Download hjælp?
22-06-2019, 18:57
#1
Bulk Download hjælp?
Hey SS,

Jeg har fundet alle disse wallpapers, og vil gerne hente dem alle sammen ned på en gang.
Er der nogen som kan hjælpe med hvordan jeg lige gør det?
https://wallpaperplay.com/board/minimali...wallpapers

Jeg er på linux.

// Viggo
Find alle beskeder fra denne bruger
Citer denne besked i et svar
23-06-2019, 11:33
#2
RE: Bulk Download hjælp?
/walls/full/2/3/3/25456.jpg
/walls/full/2/f/f/25457.jpg
/walls/full/4/4/e/25458.jpg
/walls/full/c/d/8/25459.jpg
/walls/full/c/0/2/25460.jpg
/walls/full/e/9/4/25461.jpg
/walls/full/3/0/2/25462.jpg
/walls/full/1/4/f/25463.jpg
/walls/full/f/9/5/25464.jpg
/walls/full/f/7/5/25465.jpg
/walls/full/4/d/3/25466.jpg
/walls/full/4/a/5/25467.jpg
/walls/full/7/b/5/25468.jpg
/walls/full/b/5/7/25469.jpg
/walls/full/1/c/2/25470.jpg
/walls/full/2/8/f/25471.jpg
/walls/full/2/f/7/25472.jpg
/walls/full/e/a/7/25473.jpg
/walls/full/4/f/a/25474.jpg
/walls/full/1/c/7/25475.jpg
/walls/full/b/8/7/25476.jpg
/walls/full/f/9/1/25477.jpg
/walls/full/0/2/0/25478.jpg
/walls/full/b/c/8/25479.jpg
/walls/full/b/0/0/25480.jpg
/walls/full/f/1/c/25481.jpg
/walls/full/7/6/d/25482.jpg
/walls/full/3/7/4/25483.jpg
/walls/full/9/5/1/25484.jpg
/walls/full/8/1/e/25485.jpg
/walls/full/e/6/1/25486.jpg
/walls/full/8/6/4/25487.jpg
/walls/full/e/a/5/25488.jpg
/walls/full/0/6/3/25489.jpg
/walls/full/7/9/0/25490.jpg
/walls/full/e/c/0/25491.jpg
/walls/full/f/a/6/25492.jpg
/walls/full/8/e/e/25493.jpg
/walls/full/a/2/1/25494.jpg
/walls/full/8/b/e/25495.jpg
/walls/full/1/8/c/25496.jpg
/walls/full/b/f/a/25497.jpg
/walls/full/4/9/8/25498.jpg
/walls/full/9/9/e/25499.jpg
/walls/full/1/0/8/25500.jpg
/walls/full/8/3/e/25501.jpg
/walls/full/b/d/b/25502.jpg
/walls/full/0/6/c/25503.jpg
/walls/full/e/e/c/25504.jpg
/walls/full/b/6/0/25505.jpg
/walls/full/c/9/1/25506.jpg
/walls/full/8/5/1/25507.jpg
/walls/full/1/0/0/25508.jpg
/walls/full/3/9/3/25509.jpg
/walls/full/9/3/5/25510.jpg
/walls/full/d/3/a/25511.jpg
/walls/full/f/9/3/25512.jpg
/walls/full/0/9/0/25513.jpg
/walls/full/4/0/1/25514.jpg
/walls/full/7/8/8/25515.jpg
/walls/full/9/0/2/25516.jpg
/walls/full/3/6/2/25517.jpg
/walls/full/9/8/c/25518.jpg
/walls/full/0/b/7/25519.jpg
/walls/full/f/d/1/25520.jpg
/walls/full/e/d/3/25521.jpg
/walls/full/5/3/2/25522.jpg
/walls/full/2/3/f/25523.jpg
/walls/full/2/2/2/25524.jpg
/walls/full/8/6/a/25525.jpg
/walls/full/e/5/9/25526.jpg
/walls/full/4/1/d/25527.jpg
/walls/full/e/e/d/25528.jpg
/walls/full/8/2/3/25529.jpg
/walls/full/e/6/2/25530.jpg
/walls/full/3/0/4/25531.jpg
/walls/full/c/5/6/25532.jpg
/walls/full/5/b/4/25533.jpg
/walls/full/f/5/0/25534.jpg
/walls/full/6/8/f/25535.jpg
/walls/full/3/a/e/25536.jpg
/walls/full/6/8/8/25537.jpg

82 stk. Måske man kan lave et eller andet script? Dunno, men her er alle links i hvert fald :)
Find alle beskeder fra denne bruger
Citer denne besked i et svar
23-06-2019, 12:42
#3
RE: Bulk Download hjælp?
Lav et python script til det eventuelt. Burde ikke tage lang tid at lave.
[Billede: rGvl8UM.png]
Find alle beskeder fra denne bruger
Citer denne besked i et svar
23-06-2019, 16:26
#4
RE: Bulk Download hjælp?
Det her burde at virke.

Kode:
import requests

for x in range(25455, 25538):
    r = requests.get("https://wallpaperplay.com/w/download/{}".format(x))
    with open(str(x) + '.png', "wb") as f:
        for chunk in r:
            f.write(chunk)
Find alle beskeder fra denne bruger
Citer denne besked i et svar
23-06-2019, 19:29 (Denne besked var sidst ændret: 23-06-2019, 19:31 af Shell.)
#5
RE: Bulk Download hjælp?
Genialt gutter. Tusind tak for det.

(23-06-2019, 11:33)Magnifique Skrev: /walls/full/2/3/3/25456.jpg
/walls/full/2/f/f/25457.jpg
/walls/full/4/4/e/25458.jpg
/walls/full/c/d/8/25459.jpg
/walls/full/c/0/2/25460.jpg
/walls/full/e/9/4/25461.jpg
/walls/full/3/0/2/25462.jpg
/walls/full/1/4/f/25463.jpg
/walls/full/f/9/5/25464.jpg
/walls/full/f/7/5/25465.jpg
/walls/full/4/d/3/25466.jpg
/walls/full/4/a/5/25467.jpg
/walls/full/7/b/5/25468.jpg
/walls/full/b/5/7/25469.jpg
/walls/full/1/c/2/25470.jpg
/walls/full/2/8/f/25471.jpg
/walls/full/2/f/7/25472.jpg
/walls/full/e/a/7/25473.jpg
/walls/full/4/f/a/25474.jpg
/walls/full/1/c/7/25475.jpg
/walls/full/b/8/7/25476.jpg
/walls/full/f/9/1/25477.jpg
/walls/full/0/2/0/25478.jpg
/walls/full/b/c/8/25479.jpg
/walls/full/b/0/0/25480.jpg
/walls/full/f/1/c/25481.jpg
/walls/full/7/6/d/25482.jpg
/walls/full/3/7/4/25483.jpg
/walls/full/9/5/1/25484.jpg
/walls/full/8/1/e/25485.jpg
/walls/full/e/6/1/25486.jpg
/walls/full/8/6/4/25487.jpg
/walls/full/e/a/5/25488.jpg
/walls/full/0/6/3/25489.jpg
/walls/full/7/9/0/25490.jpg
/walls/full/e/c/0/25491.jpg
/walls/full/f/a/6/25492.jpg
/walls/full/8/e/e/25493.jpg
/walls/full/a/2/1/25494.jpg
/walls/full/8/b/e/25495.jpg
/walls/full/1/8/c/25496.jpg
/walls/full/b/f/a/25497.jpg
/walls/full/4/9/8/25498.jpg
/walls/full/9/9/e/25499.jpg
/walls/full/1/0/8/25500.jpg
/walls/full/8/3/e/25501.jpg
/walls/full/b/d/b/25502.jpg
/walls/full/0/6/c/25503.jpg
/walls/full/e/e/c/25504.jpg
/walls/full/b/6/0/25505.jpg
/walls/full/c/9/1/25506.jpg
/walls/full/8/5/1/25507.jpg
/walls/full/1/0/0/25508.jpg
/walls/full/3/9/3/25509.jpg
/walls/full/9/3/5/25510.jpg
/walls/full/d/3/a/25511.jpg
/walls/full/f/9/3/25512.jpg
/walls/full/0/9/0/25513.jpg
/walls/full/4/0/1/25514.jpg
/walls/full/7/8/8/25515.jpg
/walls/full/9/0/2/25516.jpg
/walls/full/3/6/2/25517.jpg
/walls/full/9/8/c/25518.jpg
/walls/full/0/b/7/25519.jpg
/walls/full/f/d/1/25520.jpg
/walls/full/e/d/3/25521.jpg
/walls/full/5/3/2/25522.jpg
/walls/full/2/3/f/25523.jpg
/walls/full/2/2/2/25524.jpg
/walls/full/8/6/a/25525.jpg
/walls/full/e/5/9/25526.jpg
/walls/full/4/1/d/25527.jpg
/walls/full/e/e/d/25528.jpg
/walls/full/8/2/3/25529.jpg
/walls/full/e/6/2/25530.jpg
/walls/full/3/0/4/25531.jpg
/walls/full/c/5/6/25532.jpg
/walls/full/5/b/4/25533.jpg
/walls/full/f/5/0/25534.jpg
/walls/full/6/8/f/25535.jpg
/walls/full/3/a/e/25536.jpg
/walls/full/6/8/8/25537.jpg

82 stk. Måske man kan lave et eller andet script? Dunno, men her er alle links i hvert fald :)

Hvordan fik du dem ud sådan der?
Find alle beskeder fra denne bruger
Citer denne besked i et svar
24-06-2019, 16:16
#6
RE: Bulk Download hjælp?
(23-06-2019, 19:29)ViggoGaming Skrev: Genialt gutter. Tusind tak for det.


Hvordan fik du dem ud sådan der?


Tbh så kiggede jeg view-source, og sortede alt andet væk. Nemt med notepad++

Griner... :D
Find alle beskeder fra denne bruger
Citer denne besked i et svar
24-06-2019, 21:26
#7
RE: Bulk Download hjælp?
from bs4 import BeautifulSoup
import requests


source = requests.get('https://wallpaperplay.com/board/minimalist-hd-wallpapers').text
soup = BeautifulSoup(source, 'lxml')

for each in soup.findAll("div", {"data-download" : True}):
downloadlink = each.div.img['data-download']
d = requests.get(downloadlink)
x = downloadlink.split('/')[-1]
x = x + '.jpg'
open(x, 'wb').write(d.content)
print(f'downloaded {x}')
Find alle beskeder fra denne bruger
Citer denne besked i et svar
24-06-2019, 21:54
#8
RE: Bulk Download hjælp?
Tak til jer alle som er kommet med et svar :).
Jeg har henter billederne ned.
Find alle beskeder fra denne bruger
Citer denne besked i et svar
« Ældre | Nyere »




User(s) browsing this thread: 1 Gæst(er)