Last active
November 10, 2020 14:05
-
-
Save amacal/a13a4ce66e33bcad2096ea730b12c654 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ftplib import FTP | |
ftp = FTP('ftp.acc.umu.se') | |
ftp.login() | |
ftp.cwd('mirror/wikimedia.org/dumps/enwiki/20201020/') | |
filename = 'enwiki-20201020-langlinks.sql.gz' | |
with open(filename, 'wb') as fp: | |
ftp.retrbinary(f'RETR {filename}', fp.write) | |
ftp.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment