Advertisement
Guest User

Untitled

a guest
Apr 5th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. {{Information
  2. |Description={{en|Figure 3: Allelopathy test plates on anchored structures at the IEAPM field laboratory.}}
  3. |Source=[[doi:10.7717/peerj.3186]]
  4. |Date=2017-03-04
  5. |Author= Felipe V. Ribeiro, Bernardo A.P. da Gama, Renato C. Pereira​
  6. |Permission={{cc-by-4.0}}
  7. |other_versions=
  8. }}
  9.  
  10. [[Category:Media from PeerJ]]
  11. #!/bin/sh
  12. # Titel = $1, Text = $2, Name = $3, Passwort = $4
  13. #Logintoken anfordern und Login ausführen, Ergebnis in cookies:
  14. curl -b cookies -c cookies --data "action=clientlogin&username=George_Fock&password=judenfranz&loginreturnurl=http://commons.wikimedia.org&logintoken=$(curl -c cookies --data "action=query&meta=tokens&type=login&format=xml" "https://commons.wikimedia.org/w/api.php" | grep -o "[0-9a-z]\{40\}")%2B%5C&format=xml" "https://commons.wikimedia.org/w/api.php"
  15.  
  16. #CSRFtoken anfordern:
  17. CSRFTOKEN=$(curl -b cookies -c cookies --data "action=query&meta=tokens&type=csrf&format=xml" "https://commons.wikimedia.org/w/api.php" | grep -o "[0-9a-z]\{40\}")
  18.  
  19. #Upload mit aktuellem CSRF-Token:
  20. curl -b cookies -c cookies -F "action=upload" -F "filename=$1" -F "token=$CSRFTOKEN+\\" -F "file=@$2" "https://commons.wikimedia.org/w/api.php"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement