Guest User

Untitled

a guest
Jan 30th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. Forum Auto Downloader
  2.  
  3. Notes
  4.  
  5. • The server that this script will be running on will have a parent folder with many subfolders.
  6. These subfolders will be the name of each genre (which also matches the individual forum titles).
  7.  
  8. • There will be a separate .csv file named after each genre in the parent folder. The file will have 3 columns
  9. named [title, url, status]. The column headers will be located in A1, A2 & A3.
  10.  
  11. [title] will hold the extracted forum post title.
  12. [url] will hold the forum post url.
  13. [status] will display a 0 or 1 :
  14.  
  15. 0 if the Zippyshare link url displays an error message of "expired or does not exist".
  16.  
  17. 1 if the save as download dialog appears, or if the Zippyshare download button is available.
  18. (Whatever is better recommended for longevity).
  19.  
  20.  
  21. Steps of the Script
  22.  
  23. 1. Check the .csv file for a match in the [url] field. If there is a match, stop the script.
  24. 2. Extract the [title] of the post.
  25. 3. Save the extracted [title] to the .csv file. Place in cell A2.
  26. 4. Select the next post.
  27. 5. Extract the [url] of the post.
  28. 6. Save the extracted [url] to the .csv file. Place in cell B2.
  29. 7. Click the download link inside of the forum post, opening a zippyshare link.
  30. a. The download link is in the form of an image, which is static across all forum posts.
  31. 8. Download the file from the Zippyshare link.
  32. a. The download link is in the form of an image, which is static across all Zippyshare urls.
  33. 9. Use the extracted title from step [3], which is stored in A2, as the title of the downloaded audio file.
  34. 10. Once the download has started, mark the [status] field in the spreadsheet 1.
  35. 11. If the download is not available Zippyshare will display the error
  36. "File has expired and does not exist anymore on this server”
  37. If the error is displayed, mark the [status] field 0.
  38. 12. Loop from step [2]
  39. 13. If the script runs 40 times, navigate to the next page on the forum.
  40. a. The next page link is in the form of a image, which is static at the bottom of the each page.
  41. b. The script will run 40 times, because this is the number of post entries per page.
  42.  
  43.  
  44. Notes:
  45.  
  46. • After the file is saved successfully, the next entry should move down one row in the .csv sheet.
Advertisement
Add Comment
Please, Sign In to add comment