4 ms·
Sure. The code's up on my site [0]. Please note that I'm a beginner programmer, so the code probably looks really ugly to professional devs. I plan on refactor
by reedwolf 6y ago
Sure. The code's up on my site [0].
Please note that I'm a beginner programmer, so the code probably looks really ugly to professional devs. I plan on refactoring the code once I get more advanced in programming.
[0] https://capybasilisk.com/posts/2020/04/speculative-fiction-bot/ https://capybasilisk.com/posts/2020/04/speculative-fiction-b...
- seesawtron 6y agoAwesome. Didn't know about reddit API wrapper praw! Thanks a ton, will give it a try. One question: How does the locally run python script feedback the scraped data to bot user account app?
- reedwolf 6y agoThe bot's currently running on a virtual private server. The scraped data is all in a CSV file located in the same directory as the bot's source file. When the bot is run, it logs on to Reddit, loads the CSV data file into memory, and begins iterating through the Reddit comment stream checking for book title/author pairs.
- Breza 6y agoDon't hate on your code. If it runs and does what you want, then it's good code. Refactoring later can be useful and improve things like performance and readability but what matters is that it works.
- reedwolf 6y agoThank you! It was the first time posting my code here, so I was kinda nervous, haha.