Advertisement
Guest User

Untitled

a guest
Jul 7th, 2017
1,064
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. LOMC Installation Guide
  2.  
  3. LOMC (Low Orbit Meme Cannon) is a Python script that will randomly combine pre-defined statuses and memes into tweets, periodically tweeting them for you.
  4.  
  5. Statuses can be written into separate .txt files and held in a folder called "statuses". Memes can be dumped into a folder called "memes". LOMC will then search these folders periodically, randomly generate tweet combinations, and then tweet them. Currently it tweets once every 333 seconds, this can be adjusted but please be aware of Twitter's API limitations before adjusting the set time delay value (https://support.twitter.com/articles/15364).
  6.  
  7. You will need to install Python on your system and configure LOMC to connect to your twitter account, instructions below.
  8.  
  9. 1. Install Python
  10. 2. Download Script
  11. 3. Install TwitterAPI Module
  12. 4. Configure Twitter API
  13. 5. Configure Statuses and Memes
  14. 6. Profit
  15.  
  16. 1. Install Python
  17. 1.1 - Go to https://www.python.org/, download and install VERSION 2.7 (NOT 3!)
  18.  
  19. 2. Download Script
  20. 2.1 - Go to https://pastebin.com/PWwErPpd
  21. 2.2 - Copy script into text editor, save as "lomc.py"
  22.  
  23. 3. Install Twitter API Module
  24. 3.1 - Open command prompt or terminal, run following command to install required Python module:
  25.  
  26. Windows:
  27. C:\Python27\Scripts\pip.exe install TwitterAPI
  28.  
  29. MAC OSX:
  30. sudo pip install TwitterAPI
  31.  
  32. Linux:
  33. sudo pip install TwitterAPI
  34.  
  35. 4. Configure Twitter API
  36. 4.1 - Log into Twitter with desired account
  37. 4.2 - Go to https://apps.twitter.com/
  38. 4.4 - Click "Create New App"
  39. 4.5 - Name = "<whatever you want>"
  40. 4.6 - Description = "<whatever you want>"
  41. 4.7 - Website = "<http://whateveryouwant.com>" (doesn't matter, as long as correctly formatted)
  42. 4.8 - Callback URL = <leave blank> (doesn't matter)
  43. 4.9 - Click Create Application
  44. 4.10 - Go to "Keys and Access Tokens"
  45. 4.11 - Double check that the "Access Level" is "Read and write"
  46. 4.12 - Scroll down and click "Create my access token"
  47. 4.13 - Open "lomc.py" script in text editor
  48. 4.14 - Copy "Consumer Key (API Key)" into "consumer_key" variable (between the single quotes) at top of script (remove any space characters)
  49. 4.15 - Copy "Consumer Secret (API Secret)" into "consumer_secret" variable (between the single quotes) at top of script (remove any space characters)
  50. 4.16 - Copy both lines of "Access Token" into "access_token_key" variable (between the single quotes) at top of script (remove any space characters)
  51. 4.17 - Copy "Access Token Secret" into "access_token_secret" variable (between the single quotes) at top of script (remove any space characters)
  52. 4.18 - Save lomc.py script file
  53.  
  54. 5. Configure Statuses and Memes
  55. 5.1 - Put "lomc.py" script file into a desired directory (e.g C:\Temp\LOMC or /home/<user>/LOMC)
  56. 5.2 - Create sub-directory called "statuses", fill it with tasty statuses, each one in a separate .txt file
  57. 5.3 - Create sub-directory called "memes", fill it with spicy memes in .jpg, .jpeg, .png, .gif or .mp4 format
  58.  
  59. 6. Profit
  60. 6.1 - Open command prompt or terminal, run the script
  61. 6.1.1 - Run command "cd <directory containing lomc.py>" e.g "cd C:\Temp\LOMC" or "cd /home/<user>/LOMC" to move into the directory containing lomc.py
  62. 6.1.2 - Run the lomc.py script using Python
  63.  
  64. Windows:
  65. C:\Python27\python.exe lomc.py
  66.  
  67. MAC OSX:
  68. python lomc.py
  69.  
  70. Linux:
  71. python lomc.py
  72.  
  73. 6.2 - By default, LOMC will look for "statuses" and "memes" directories in its current directory.
  74. If you want to run multiple bots you can manually point each bot at your "statuses" and "memes" directories:
  75.  
  76. Windows:
  77. C:\Python27\python.exe lomc.py <status_dir> <memes_dir>
  78.  
  79. MAC OSX:
  80. python lomc.py <status_dir> <memes_dir>
  81.  
  82. Linux:
  83. python lomc.py <status_dir> <memes_dir>
  84.  
  85.  
  86. Please remember to meme responsibly.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement