[removed]

Comments (311)

Hi! Great job! May I suggest that you explain a way to host your bot? As not everyone can keep their PC running forever.

I'm using AWS (free tier) for mine, but I know there are alternatives like Heroku.

BTW:

!author Tolkien

:P

I'm using AWS (free tier) for mine, but I know there are alternatives like Heroku.

Or, even simpler: a Raspberry Pi, Orange Pi, Pine A64, or any of the mini computers available for next to nothing.

How is using having to setup and maintain a pi easier than just doing a few commands on heroku?

Once setup, Raspberry Pis are extremely low maintenance. You can even let them autoupdate if you wish to (which I never do).

As opposed to Windows machines, Raspberries run without reboots every so often.

I prefer to have full control over my installations and bots and not to depend on some third party remote hosting.

[deleted]

Fun != Simpler

I'm planning on buying one!

Be prepared to buy a bunch. It never ends at one...

Currently, I have:

  • Raspberry Pi 3 - Retropi game station
  • OrangePi Zero - MagPi bot to grab the latest issue and drop it in my dropbox, also PiHole (currently inactive)
  • Raspberry Pi 3 - 3.5" touchscreen - Octopi/OctoPrint
  • Raspberry Pi 2 - retired mediacenter
  • Pine A64+ - currently inactive
  • Orange Pi Zero - because they were cheaper as double pack - not yet assigned a function
  • Raspberry Pi 3 with official 7" touchscreen - general purpose dev/network test tool

In the company:

  • Raspberry Pi 3 - Infoscreen
  • Raspberry Pi 3 - network testing tool - DCF77 Stratum 1 time server
  • 4 more RPi 3 incoming - general network testing tools

Planned at home

  • Raspberry Pi3 with zigbee or similar module to replace all timer plugs (because I am sick of having to adjust all them for Christmas lighting, etc.)

Nice collection! Giving the fact that I'm a student that's about to move from spain to sweden to study my masters... I think I can only afford one!

Where in sweden? (PM) im a CS student with lots of Pi's. Join me with my projects

Pi0w is only $10, of course you can only buy one at a time.

Well, that's excluding an HDMI, USB cable, SD (TF) card and (maybe) a display/touchscreen.

That's not to say however that it's not dirt cheap anyway.

Thats true, but the kits are not crazy expensive. I have tried using the pi on a small screen, and it is not fun. I cannot see a thing.

Most of the time I try to run headless.

[deleted]

Thanks for that. I knew about Home assistant and OpenHAB, but didn't know about bellows. Bookmarked.

Hi, a Pi network tool could be useful! Could you explain what kind of tools you could use it for?

We use it as ping checker, NTP server, DNS (if we don't use a Windows Domain), arp, traceroute, OpenVPN, and what we can think of. It's not yet fully determined what else we are going to use it for.

Key is, Raspberries allow quick network changing and this is what we need for our work. Also, they are not bound by any Windows Firewall rules that we need enabled.

Does the 100mb limitation of the NIC not really come into play in your network testing?

Not really because we don't need to test for network throughput. The main testing we need the Raspi for is in house. Mainly just to troubleshoot our internal test networks if there are some connectivity issues.

We have a separate throughput tester for copper and fibre networks as such networks are part of the installations on the project sites.

Are raspberry pi's easy to setup? Does it involve any soldering etc? I kind of want to try it out.

[deleted]

You need a mini SD card

The proper name is microSD.

Oohh interesting! I thought it involves soldering and whatnot cos I don't have a soldering iron with me.

Are raspberry pi's easy to setup?

Yes. All that needs to be done is to "burn" the OS image to a micro SD card and then boot the Raspberry with it.

Does it involve any soldering etc?

Can involve soldering but does not necessarily do it. A stock Raspberry (except for the GPIO pins on the PI zero series) doesn't need any soldering.

Damn. Now I'm really interested. Gonna look more into pi's later today.

Do you pay for those MagPi issues right? I'm too broke to pay for them so I haven't read one in so long, lol.

You can download all issues (including back issues and specials) in PDF for free from the website. Am on mobile so I can't link to the site.

Hi.

Thank you!

I wouldn't ever find this by myself.

To anyone else like me here is it. https://www.raspberrypi.org/magpi/issues/

Click on "Get Issue" and "Download Free".

Thanks /u/desrtfx !

[deleted]

No GPS. DCF77 is based on longwave radio and older than GPS: https://en.wikipedia.org/wiki/DCF77

This works only in central Europe.

The Raspberry is connected to a DCF77 receiver. This is a cheap and fairly simple setup.

DCF77

DCF77 is a German longwave time signal and standard-frequency radio station. It started service as a standard-frequency station on 1 January 1959. In June 1973 date and time information was added. Its primary and backup transmitter are located at 50°0′56″N 9°00′39″E in Mainflingen, about 25 km south-east of Frankfurt am Main, Germany.


^[ ^PM ^| ^Exclude ^me ^| ^Exclude ^from ^subreddit ^| ^FAQ ^/ ^Information ^| ^Source ^] ^Downvote ^to ^remove ^| ^v0.24

I have a serious fetish for dev boards. I started getting into microchip curiosities. MPLABX with code configurator makes it fun and fast. I like electromechanical projects, it allows you to speed through or skip config bits and get straight to the good stuff. But I have piles of Arduinos and PI's. It's cheap and the possibilities are literally endless.

Can you explain the advantage of using a separate unit to host each project? Why not just use a single, more powerful home server? Thanks.

For me it's flexibility. I like to move things around and have them where I want them.

Sure, I could use a proper server and work with virtual machines, but Raspberries (and their clones) are cheap enough and fun enough to play with. I didn't get all of them at once. They sort of accumulated.

Quite a few of them are in my office which is 200km away from home.

MagPi bot to grab the latest issue and drop it in my dropbox, also PiHole (currently inactive)

Any source code for this or similar? I need this in my life but I'm also lazy :P

Yes, got the code. It isn't my development: https://github.com/d-rez/magpi-fetch

Don't know for sure but there could be some changes necessary due to Dropbox having changed their API lately.

Dear god, the bots are buying each other now!!

Already own a pi, trying that as soon as I get some spare time

Which AWS service?

You will need to ask the original commenter, I only quoted the above.

Might be the Amazon Web Service in the free tier

But there's EB, EC2, Lightsail....

EC2, free tier.

  1. The Hobbit by J.R.R. Tolkien. (4.25/5 *) Link

  2. The Fellowship of the Ring (The Lord of the Rings, #1) by J.R.R. Tolkien. (4.34/5 *) Link

  3. The Two Towers (The Lord of the Rings, #2) by J.R.R. Tolkien. (4.42/5 *) Link

  4. The Return of the King (The Lord of the Rings, #3) by J.R.R. Tolkien. (4.51/5 *) Link

  5. The Lord of the Rings (The Lord of the Rings, #1-3) by J.R.R. Tolkien. (4.47/5 *) Link


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

Yeah that is something I wanted to add, but the post got too big!

Please make a separate resource for that. I had the hardest time trying to do that and gave up.

I'll try to do that. Since my exams are coming, it can take a few weeks!

Send me a link when you do! A lot of the videos and guides explain things away as if I Understand everything they're doing and it's frustrating. I look forward to going over your guide later when I get off work. Thanks for putting it together.

RemindMe! 2 weeks

for now. Take your time and make a nice post (like this one) OP!

A DigitalOcean 512mb instance ($5/mo, free for a couple of months with basic promo codes) would run this bot without issue.

An even cheaper option is Vultr. They have 512MB instances for $2.50/month.

Wow, did not know about Vultr, looks good enough to give them a try. Thank you!

As not everyone can keep their PC running forever.

Not with that attitude indeed.

Edit: Unfortunately, even after a month after this tutorial was posted, we (as well as moderators of other subreddits) have seen a distinct uptick in bots that do not follow bottiquette and post unwanted and low-effort content. While there's no inherent issue with teaching people how to program via practical examples, we feel that shouldn't come at the expense of others. Consequently, we're removing this post in an effort to help minimize this (unfortunate), ongoing behavior.

[deleted]

THAT IS A VERY RELEVANT USERNAME YOU'VE GOT THERE, FELLOW HUMAN.

This is exactly what I was looking for after getting tired of all the other resources that wont let you do anything

I'm glad that I could be of help

Dear /u/kindw,

This is an automated message from Carls Junior.

Our recent sighting of your activity on https://Reddit.Com/r/LearnProgramming as well as our data analytics on you and your "other" Internet activities has left us no choice; we must flag your account as a potential threat to civilized human life. This analysis finds you in violation of The Civilized User Agreement of the international control board, founded in 2490 by the United Nations of Apple-Google-Carls Junior.

Effective immediately, you are to report to your nearest Carls Junior for euthanasia. Have a nice day.

https://gfycat.com/BonyBruisedBlowfish

Edit: Fixed link

https://gfycat.com/BonyBruisedBlowfish

As someone who identifies as a bony bruised blowfish that url has offended me. My size is not restricted!

Quick, now make a bot that puts this on all his posts

And thus the flood gates opened and thousands of bots stormed the shores of various subreddits. What humankind does with knowledge more often than not leads to his own downfall.

Yeah, I would like to see a 3rd bullet under "important information - please read"

3: please make your bot opt-in for subreddits, and not "opt out". Not every subreddit wants to be overrun by random bots, and if you piss off enough people they'll complain to the admins and try to get you banned.

Or just "This is botiquette. Read it. Know it. Allow it to fill your whole being. Bots that do not follow this document will be hated by basically everyone and reported to the admins."

2 months, then we will see.

Let's see RemindMe! 2 Months

What humankind does with knowledge more often than not leads to his own downfall

Basically every Civ quote

Hundreds of shitty bots incoming

Sweet, we can add them to the pile.

Looks good! The one suggestion I have is to, in the comment parsing code, instead of parsing the number yourself using a Regex capturing group.

This is my replacement Regex which incorporates the capturing group as well as the changes you mentioned (optional https and www.) with a couple other things like escaping periods.

Thanks for your suggestion. I really appreciate it.

I did not implement an advanced regex as I was looking for people to come out with them, so that they can get an understanding of how a regex can be improved. I'll look into your implementation, and possibly push it to the repo.

What does this do (?:www\.)?? What I make out of it is that (?)? is a non-capturing group. But if I remove both question marks (making it a normal capturing group), all maches fail.

That bit is a non-capturing group matching the literal www. the entirety of which is optional.

If you remove the ?: from after the opening paren, that changes the group to be a capturing group, so group 1 will be www. and group 2 will be the number. (I think the issue that you ran into is that you need to remove the : as well, both the ?: make the group non-capturing, and if you remove just the ?, the : will be part of the match.)

If you remove the second ? from after the group, it makes the group non-optional, meaning that the URL must contain the www. prefix before xkcd.com.

thanks, I totally understand what's going on now!

Huh. I made a Reddit bot yesterday. And it was a coolest thing I have ever done. What a coincidence. But I haven't fully implemented in a website yet. And I still need more ideas for better bot as well.

Coming up with a good idea is the hardest part IMO.

What a coincidence, I made a bot today, before seeing this post. Check it out!

!book Crime and punishment

  1. Crime and Punishment by Fyodor Dostoyevsky. (4.18/5 *) Link

Through the story of the brilliant but conflicted young Raskolnikov and the murder he commits, Fyodor Dostoevsky explores the theme of redemption through suffering. Crime and Punishment put Dostoevsky at the forefront of Russian writers when it appeared in 1866 and is now one of the most famous and influential novels in world literature.The poverty-stricken Raskolnikov, a talented student, devises a theory about extraordinary men being above the law, since in their brilliance they think “new thoughts” and so contribute to society. He then sets out to prove his theory by murdering a vile, cynical old pawnbroker and her sister. The act brings Raskolnikov into contact with his own buried conscience and with two characters — the deeply religious Sonia, who has endured great suffering, and Porfiry, the intelligent and discerning official who is charged with investigating the murder — both of whom compel Raskolnikov to feel the split in his nature. Dostoevsky provides readers with a suspenseful, penetrating psychological analysis that goes beyond the crime — which in the course of the novel demands drastic punishment — to reveal something about the human condition: The more we intellectualize, the more imprisoned we become.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book The Kite Runner

  1. The Kite Runner by Khaled Hosseini. (4.26/5 *) Link

“It may be unfair, but what happens in a few days, sometimes even a single day, can change the course of a whole lifetime." Amir is the son of a wealthy Kabul merchant, a member of the ruling caste of Pashtuns. Hassan, his servant and constant companion, is a Hazara, a despised and impoverished caste. Their uncommon bond is torn by Amir's choice to abandon his friend amidst the increasing ethnic, religious, and political tensions of the dying years of the Afghan monarchy, wrenching them far apart. But so strong is the bond between the two boys that Amir journeys back to a distant world, to try to right past wrongs against the only true friend he ever had.The unforgettable, heartbreaking story of the unlikely friendship between a wealthy boy and the son of his father’s servant, The Kite Runner is a beautifully crafted novel set in a country that is in the process of being destroyed. It is about the power of reading, the price of betrayal, and the possibility of redemption; and an exploration of the power of fathers over sons—their love, their sacrifices, their lies.A sweeping story of family, love, and friendship told against the devastating backdrop of the history of Afghanistan over the last thirty years, The Kite Runner is an unusual and powerful novel that has become a beloved, one-of-a-kind classic.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book Lord of Light

  1. Lord of Light by Roger Zelazny. (4.10/5 *) Link

Earth is long since dead. On a colony planet, a band of men has gained control of technology, made themselves immortal, and now rule their world as the gods of the Hindu pantheon. Only one dares oppose them: he who was once Siddhartha and is now Mahasamatman. Binder of Demons, Lord of Light.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book Atlas Shrugged

  1. Atlas Shrugged by Ayn Rand. (3.68/5 *) Link

This is the story of a man who said that he would stop the motor of the world and did. Was he a destroyer or the greatest of liberators?Why did he have to fight his battle, not against his enemies, but against those who needed him most, and his hardest battle against the woman he loved? What is the world’s motor — and the motive power of every man? You will know the answer to these questions when you discover the reason behind the baffling events that play havoc with the lives of the characters in this story. Tremendous in its scope, this novel presents an astounding panorama of human life — from the productive genius who becomes a worthless playboy — to the great steel industrialist who does not know that he is working for his own destruction — to the philosopher who becomes a pirate — to the composer who gives up his career on the night of his triumph — to the woman who runs a transcontinental railroad — to the lowest track worker in her Terminal tunnels. You must be prepared, when you read this novel, to check every premise at the root of your convictions.This is a mystery story, not about the murder — and rebirth — of man’s spirit. It is a philosophical revolution, told in the form of an action thriller of violent events, a ruthlessly brilliant plot structure and an irresistible suspense. Do you say this is impossible? Well, that is the first of your premises to check.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book for Texas and zed

  1. For Texas and Zed by Zach Hughes. (3.50/5 *) Link

Planet TexasSpacemen from Texas on Earth had settled this remote planet centuries ago. while the rest of the galaxy was being divided between two vast warring empires, Planet Texas preserved its independence, created its own unique civilization, developed its own advanced technology. but now all that Planet Texas was and all that it believed in were threatened, as the super-powers of space moved in for the kill.The odds against survival for Planet Texas were a million to one. And only one choice lay open to it and the remarkable man who had risen to be its leader. Either Texas had to become the mightiest warrior planet in space history - or else it and man's last hope for freedom would vanish for all eternity...


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

Good bot

!book everybody poops

  1. Everybody Poops 410 Pounds a Year: An Illustrated Bathroom Companion for Grown-Ups by Deuce Flanagan. (4.20/5 *) Link

Want more fascinating facts about poop? We've got a new book! Check out Everybody Poops 10 Million Pounds: Astounding Fecal Facts from a Day in the City from author Deuce Flanagan on Amazon today. ONCE UPON A TIME . . .. . . when you were little, you learned that everyone poops. But did you ever discover how much? Well, sit down on that cold porcelain throne and get ready to laugh your butt off at the most amazing, hilarious, need-to-go facts on the one thing everyone does--but nobody talks about. Filled to the rim with piles of fascinating dirty fun, this illustrated kids' book for grown-ups answers all the questions you never thought to ask:•How do astronauts poop in space? •Where does poop go after you flush? •Why can I see the corn but not the chicken? •Can I light my poop on fire? •Who invented the first flushing toilet? •What's the poop on Michael Jackson, Elvis and John Wayne?


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book Mein Kampf

  1. Mein Kampf by Adolf Hitler. (3.12/5 *) Link

Madman, tyrant, animal - history has given Adolf Hitler many names. In Mein Kampf (My Struggle), often called the Nazi bible, Hitler describes his life, frustrations, ideals, and dreams. Born to an impoverished couple in a small town in Austria, the young Adolf grew up with the fervent desire to become a painter. The death of his parents and outright rejection from art schools in Vienna forced him into underpaid work as a labourer. During the First World War, Hitler served in the infantry and was decorated for bravery. After the war, he became actively involved with socialist political groups and quickly rose to power, establishing himself as Chairman of the National Socialist German Worker's party. In 1924, Hitler led a coalition of nationalist groups in a bid to overthrow the Bavarian government in Munich. The infamous Munich "Beer-hall putsch" was unsuccessful, and Hitler was arrested. During the nine months he was in prison, an embittered and frustrated Hitler dictated a personal manifesto to his loyal follower Rudolph Hess. He vented his sentiments against communism and the Jewish people in this document, which was to become Mein Kampf, the controversial book that is seen as the blue-print for Hitler's political and military campaign. In Mein Kampf, Hitler describes his strategy for rebuilding Germany and conquering Europe. It is a glimpse into the mind of a man who destabilized world peace and pursued the genocide now known as the Holocaust. "... I believe today that my conduct is in accordance with the will of the Almighty Creator. In standing guard against the Jew I am defending the handiwork of the Lord"


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book Brick Flicks

  1. Brick Flicks: 60 Iconic Movie Scenes and Posters to Make from Lego by Warren Elsmore. (3.55/5 *) Link

It s official...there is absolutely no limit to what master modeler Warren Elsmore can create with LEGO bricks! He s wowed us with architectural icons from around the globe in Brick City. He amazed us with the wonders of the ancient, natural, and modern world in Brick Wonders. And now, Elsmore takes us to the movies in Brick Flicks, as he recreates iconic scenes from the world s most famous films. Movie fans and LEGO lovers alike will delight in brick-by-brick recreations of scenes from:Raiders of the Lost ArkPlanet of the ApesRockyGreaseKing KongLawrence of Arabia, and many, many othersChapters are organized by movie genre and cover action and adventure, science fiction and horror, drama and classics, as well as musicals and comedy. With more than 100 gorgeous full-color photos of his creations, Elsmore provides commentary on how they were made along with interesting facts about the movies themselves. Readers will also enjoy easy-to-follow instructions for recreating many of the iconic scenes in their own homes.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

Not what I was looking for

!book armed to the teeth with lipstick

You made the bot crash! I hope you're happy.

Just kidding, let me find what is wrong.

Edit: So goodreads allows books without description, and as my code was expecting one to exist, it just crashed. Thank you! :)

Just like that, Reddit is your free QA team!

!book house of leaves

  1. House of Leaves by Mark Z. Danielewski. (4.13/5 *) Link

A blind old man, a young apprentice working in a tattoo shop, and a mad woman haunting an Ohio institute narrate this story of a family that encounters an endlessly shifting series of hallways in their new home, eventually coming face to face with the awful darkness lying at its heart.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book "')>}];/

!book AAAAAAAAAAAAAAAAAAAAAAAAAA

!book High Crimes

  1. High Crimes by Joseph Finder. (3.89/5 *) Link

When (not if---the deal has already been signed) this terrific thriller gets made into a movie, you might see Morgan Freeman as a crusty lawyer who specializes in taking on the military establishment tell the actress playing ace Boston barrister and Harvard Law professor Claire Heller Chapman, "Every civilian who's ever gone into a military general court-martial and tried to attack the foundations of the military has lost his case. No exceptions. The military is a tight, closed fraternity. They take it real serious. Military justice is a deadly serious business." Claire has to realize this as she prepares to defend her husband--the man she knows as Tom Chapman, but who the Army says is Ron Kubik-- on charges that he took part in a massacre of 87 civilians in San Salvador 13 years before. Full of doubts about Tom's innocence and her own ability to prove it in an unfamiliar arena, Claire is brought to exciting, moving life by the extravagantly gifted Joseph Finder, whose previous thrillers (Extraordinary Powers, The Zero Hour) are available in paperback.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

  1. Armed To The Teeth With Lipstick by Blag Dahlia. (3.80/5 *) Link

^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book The Necroscope

  1. Necroscope (Necroscope, #1) by Brian Lumley. (3.99/5 *) Link

DEAD MEN TELL NO TALES...Except to Harry Keogh, Necroscope. And what they tell him is horrifying.In the Balkan mountains of Rumania, a terrible evil is growing. Long buried in hallowed ground, bound by earth and silver, the master vampire schemes and plots. Trapped in unlife, neither dead nor living, Thibor Ferenczy hungers for freedom and revenge.The vampire's human tool is Boris Dragosani, part of a super-secret Soviet spy agency. Dragosani is an avid pupil, eager to plumb the depthless evil of the vampire's mind. Ferenczy teaches Dragosani the awful skills of the necromancer, gives him the ability to rip secrets from the mind and bodies of the dead. Dragosani works not for Ferenczy's freedom but world domination. he will rule the world with knowledge raped from the dead.His only opponent: Harry Koegh, champion of the dead and the living.To protect Harry, the dead will do anything--even rise from their graves!


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

Question for you: would it be better to have the bot reply to people "summoning" it so to speak like so: /u/-BookBot- rather than have it monitor some subreddits?

I've never made a reddit bot so I'm not sure what the pros/cons would be.

Yes, but I think It would be more difficult for the users, and some subreddits don't allow bots, so it would be banned in a lot of places! Maybe I'll do it.

!book Into thin air

  1. Into Thin Air: A Personal Account of the Mount Everest Disaster by Jon Krakauer. (4.11/5 *) Link

A bank of clouds was assembling on the not-so-distant horizon, but journalist-mountaineer Jon Krakauer, standing on the summit of Mt. Everest, saw nothing that "suggested that a murderous storm was bearing down." He was wrong. The storm, which claimed five lives and left countless more--including Krakauer's--in guilt-ridden disarray, would also provide the impetus for Into Thin Air, Krakauer's epic account of the May 1996 disaster.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

You would have to check you inbox (the bot on his account i mean) regulary. However that would be done...

I know, but it seems like it would be more efficient than monitoring entire subreddits. Have ppl come to you instead of going out and looking for them, basically.

Yes, and for example CompileBot does this. You can't do that if you look for phrases or links though.

!book A Parent's Guide to Preventing Homosexuality

  1. A Parent's Guide to Preventing Homosexuality by Joseph Nicolosi. (1.47/5 *) Link

Homosexuality: is it learned, biological or both?The answer to this question deeply concerns parents. They want to know how they can best raise their children. A common belief today is that nothing can be done to foster the development of healthy heterosexual orientation in children. But the clinical experience and professional research of Dr. Nicolosi and others indicates otherwise.In this groundbreaking book Joseph and Linda Ames Nicolosi uncover the most significant factors that contribute to a child's healthy sense of self as male or female. Listening to moving recollections from ex-homosexual men and women who describe what was missing in their own childhoods, the Nicolosis provide clear insight for identifying potential developmental roadblocks and give practical advice to parents for helping their children securely identify with their gender.Replete with personal stories from parents, children and ex-homosexual strugglers, offers compassion and hope for all those parents who seek to lay a foundation for a healthy heterosexual identity in their children.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

A Parent's Guide to Preventing Homosexuality

wat

[deleted]

  1. Land of the Zipless Fuck by Tina Hess. (3.00/5 *) Link

The zipless fuck is the perfect one night stand. It's free of games, entanglements, and ulterior motives, and it's simply hot -- as hot as the best sex could ever be. The Land of the Zipless Fuck by Tina Hess is a fan favorite and originally aired on Playboy Radio. As said by a reader, "The characters are so horny and raw with need, that their passion is contagious. The sex is so steamy, it'll have you sliding in your seat."


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book stuff matters

  1. Stuff Matters: Exploring the Marvelous Materials That Shape Our Man-Made World by Mark Miodownik. (4.06/5 *) Link

A New York Times BestsellerAn eye-opening adventure deep inside the everyday materials that surround us, packed with surprising stories and fascinating science Why is glass see-through? What makes elastic stretchy? Why does a paper clip bend? Why does any material look and behave the way it does? These are the sorts of questions that Mark Miodownik is constantly asking himself. A globally-renowned materials scientist, Miodownik has spent his life exploring objects as ordinary as an envelope and as unexpected as concrete cloth, uncovering the fascinating secrets that hold together our physical world. In Stuff Matters, Miodownik entertainingly examines the materials he encounters in a typical morning, from the steel in his razor and the graphite in his pencil to the foam in his sneakers and the concrete in a nearby skyscraper. He offers a compendium of the most astounding histories and marvelous scientific breakthroughs in the material world, including:The imprisoned alchemist who saved himself from execution by creating the first European porcelain.The hidden gem of the Milky Way, a planet five times the size of Earth, made entirely of diamond.Graphene, the thinnest, strongest, stiffest material in existence—only a single atom thick—that could be used to make entire buildings sensitive to touch.From the teacup to the jet engine, the silicon chip to the paper clip, the plastic in our appliances to the elastic in our underpants, our lives are overflowing with materials. Full of enthralling tales of the miracles of engineering that permeate our lives, Stuff Matters will make you see stuff in a whole new way.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

That's vulgar! Stop that. Cut it out.

[deleted]

The command was changed to:

!getbook consider phlebas

  1. Consider Phlebas (Culture, #1) by Iain M. Banks. (3.85/5 *) Link

The war raged across the galaxy. Billions had died, billions more were doomed. Moons, planets, the very stars themselves, faced destruction, cold-blooded, brutal, and worse, random. The Idirans fought for their Faith; the Culture for its moral right to exist. Principles were at stake. There could be no surrender.

Within the cosmic conflict, an individual crusade. Deep within a fabled labyrinth on a barren world, a Planet of the Dead proscribed to mortals, lay a fugitive Mind. Both the Culture and the Idirans sought it. It was the fate of Horza, the Changer, and his motley crew of unpredictable mercenaries, human and machine, actually to find it, and with it their own destruction.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book Ready Player One

The bot got updated to work on all subreddits, unfortunaly I had to change the command to !getbook

!getbook Ready Player One

  1. Ready Player One by Ernest Cline. (4.31/5 *) Link

In the year 2044, reality is an ugly place. The only time teenage Wade Watts really feels alive is when he's jacked into the virtual utopia known as the  OASIS. Wade's devoted his life to studying the puzzles hidden within this world's digital confines, puzzles that are based on their creator's obsession with the pop culture of decades past and that promise massive power and fortune to whoever can unlock them. When Wade stumbles upon the first clue, he finds himself beset by players willing to kill to take this ultimate prize. The race is on, and if Wade's going to survive, he'll have to win—and confront the real world he's always been so desperate to escape.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book deadhouse gates

  1. Deadhouse Gates (The Malazan Book of the Fallen, #2) by Steven Erikson. (4.25/5 *) Link

In the vast dominion of Seven Cities, in the Holy Desert Raraku, the seer Sha’ik and her followers prepare for the long-prophesied uprising known as the Whirlwind. Unprecedented in size and savagery, this maelstrom of fanaticism and bloodlust will embroil the Malazan Empire in one of the bloodiest conflicts it has ever known, shaping destinies and giving birth to legends.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book Make: Electronics

  1. MAKE: Electronics: Learning Through Discovery by Charles Platt. (4.23/5 *) Link

"This is teaching at its best!" --Hans Camenzind, inventor of the 555 timer (the world's most successful integrated circuit), and author of Much Ado About Almost Nothing: Man's Encounter with the Electron (Booklocker.com)"A fabulous book: well written, well paced, fun, and informative. I also love the sense of humor. It's very good at disarming the fear. And it's gorgeous. I'll be recommending this book highly." --Tom Igoe, author of Physical Computing and Making Things TalkWant to learn the fundamentals of electronics in a fun, hands-on way? With Make: Electronics, you'll start working on real projects as soon as you crack open the book. Explore all of the key components and essential principles through a series of fascinating experiments. You'll build the circuits first, then learn the theory behind them!Build working devices, from simple to complex You'll start with the basics and then move on to more complicated projects. Go from switching circuits to integrated circuits, and from simple alarms to programmable microcontrollers. Step-by-step instructions and more than 500 full-color photographs and illustrations will help you use -- and understand -- electronics concepts and techniques.Discover by breaking things: experiment with components and learn from failureSet up a tricked-out project space: make a work area at home, equipped with the tools and parts you'll needLearn about key electronic components and their functions within a circuitCreate an intrusion alarm, holiday lights, wearable electronic jewelry, audio processors, a reflex tester, and a combination lockBuild an autonomous robot cart that can sense its environment and avoid obstaclesGet clear, easy-to-understand explanations of what you're doing and why


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

[deleted]

  1. We Had It So Good by Linda Grant. (3.46/5 *) Link

A generational novel which opens memorably in a fur storage house in Los Angeles with its American protagonist as a boy trying on Marilyn Monroe’s coat. When he grows up, Stephen goes to Oxford as a Rhodes scholar, and stays on to avoid the draft and Vietnam.  He marries an Englishwoman, and they experience many of the things the baby boomer generation went through.  Later the torch is passed to their children.  In addition, Stephen’s father Si makes a dramatic reappearance after Stephen’s mother dies.  This is a big, capacious novel, bursting with wonderful characters and ideas.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book The Bible

  1. The Poisonwood Bible by Barbara Kingsolver. (4.02/5 *) Link

The Poisonwood Bible is a story told by the wife and four daughters of Nathan Price, a fierce, evangelical Baptist who takes his family and mission to the Belgian Congo in 1959. They carry with them everything they believe they will need from home, but soon find that all of it -- from garden seeds to Scripture -- is calamitously transformed on African soil. What follows is a suspenseful epic of one family's tragic undoing and remarkable reconstruction over the course of three decades in postcolonial Africa.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book The Bad Beginning

  1. The Bad Beginning (A Series of Unfortunate Events, #1) by Lemony Snicket. (3.89/5 *) Link

Dear Reader,I'm sorry to say that the book you are holding in your hands is extremely unpleasant. It tells an unhappy tale about three very unlucky children. Even though they are charming and clever, the Baudelaire siblings lead lives filled with misery and woe. From the very first page of this book when the children are at the beach and receive terrible news, continuing on through the entire story, disaster lurks at their heels. One might say they are magnets for misfortune.In this short book alone, the three youngsters encounter a greedy and repulsive villain, itchy clothing, a disastrous fire, a plot to steal their fortune, and cold porridge for breakfast.It is my sad duty to write down these unpleasant tales, but there is nothing stopping you from putting this book down at once and reading something happy, if you prefer that sort of thing.With all due respect,Lemony Snicket


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

good bot

Thank you EmeraldDS for voting on -BookBot-.

This bot wants to find the best and worst bots on Reddit. You can view results here.


^^Even ^^if ^^I ^^don't ^^reply ^^to ^^your ^^comment, ^^I'm ^^still ^^listening ^^for ^^votes. ^^Check ^^the ^^webpage ^^to ^^see ^^if ^^your ^^vote ^^registered!

[deleted]

  1. Breakfast of Champions by Kurt Vonnegut Jr.. (4.08/5 *) Link

In Breakfast of Champions, one of Kurt Vonnegut’s  most beloved characters, the aging writer Kilgore Trout, finds to his horror that a Midwest car dealer is taking his fiction as truth. What follows is murderously funny satire, as Vonnegut looks at war, sex, racism, success, politics, and pollution in America and reminds us how to see the truth.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

[deleted]

  1. Breakfast of Champions by Kurt Vonnegut Jr.. (4.08/5 *) Link

In Breakfast of Champions, one of Kurt Vonnegut’s  most beloved characters, the aging writer Kilgore Trout, finds to his horror that a Midwest car dealer is taking his fiction as truth. What follows is murderously funny satire, as Vonnegut looks at war, sex, racism, success, politics, and pollution in America and reminds us how to see the truth.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

[deleted]

  1. Breakfast of Champions by Kurt Vonnegut Jr.. (4.08/5 *) Link

In Breakfast of Champions, one of Kurt Vonnegut’s  most beloved characters, the aging writer Kilgore Trout, finds to his horror that a Midwest car dealer is taking his fiction as truth. What follows is murderously funny satire, as Vonnegut looks at war, sex, racism, success, politics, and pollution in America and reminds us how to see the truth.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

[deleted]

  1. Breakfast of Champions by Kurt Vonnegut Jr.. (4.08/5 *) Link

In Breakfast of Champions, one of Kurt Vonnegut’s  most beloved characters, the aging writer Kilgore Trout, finds to his horror that a Midwest car dealer is taking his fiction as truth. What follows is murderously funny satire, as Vonnegut looks at war, sex, racism, success, politics, and pollution in America and reminds us how to see the truth.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

[deleted]

  1. Breakfast of Champions by Kurt Vonnegut Jr.. (4.08/5 *) Link

In Breakfast of Champions, one of Kurt Vonnegut’s  most beloved characters, the aging writer Kilgore Trout, finds to his horror that a Midwest car dealer is taking his fiction as truth. What follows is murderously funny satire, as Vonnegut looks at war, sex, racism, success, politics, and pollution in America and reminds us how to see the truth.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book Walter the farting dog

  1. Walter the Farting Dog by William Kotzwinkle. (3.88/5 *) Link

Warning: This book may cause flatulence. Walter is a fine dog, except for one small problem: he has gas. He can't help it; it's just the way he is. Fortunately, the kids Billy and Betty love him regardless, but Father says he's got to go! Poor Walter, he's going to the dog pound tomorrow. And then, in the night, burglars strike. Walter has his chance to be a hero. A children's beloved classic, this story will have kids rolling on the floor with laughter. Adults are permitted to laugh too.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!book A book name that doesn't exist

!book gates of fire

  1. Gates of Fire: An Epic Novel of the Battle of Thermopylae by Steven Pressfield. (4.40/5 *) Link

In 480 B.C., two million Persian invaders come to the mountain pass of Thermopylae in eastern Greece, where they are met by 300 of Sparta's finest warriors. The Greek loyalists battle for six days in a prelude to their ultimate victory.


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

[deleted]

  1. Mein Kampf by Adolf Hitler. (3.12/5 *) Link

Madman, tyrant, animal - history has given Adolf Hitler many names. In Mein Kampf (My Struggle), often called the Nazi bible, Hitler describes his life, frustrations, ideals, and dreams. Born to an impoverished couple in a small town in Austria, the young Adolf grew up with the fervent desire to become a painter. The death of his parents and outright rejection from art schools in Vienna forced him into underpaid work as a labourer. During the First World War, Hitler served in the infantry and was decorated for bravery. After the war, he became actively involved with socialist political groups and quickly rose to power, establishing himself as Chairman of the National Socialist German Worker's party. In 1924, Hitler led a coalition of nationalist groups in a bid to overthrow the Bavarian government in Munich. The infamous Munich "Beer-hall putsch" was unsuccessful, and Hitler was arrested. During the nine months he was in prison, an embittered and frustrated Hitler dictated a personal manifesto to his loyal follower Rudolph Hess. He vented his sentiments against communism and the Jewish people in this document, which was to become Mein Kampf, the controversial book that is seen as the blue-print for Hitler's political and military campaign. In Mein Kampf, Hitler describes his strategy for rebuilding Germany and conquering Europe. It is a glimpse into the mind of a man who destabilized world peace and pursued the genocide now known as the Holocaust. "... I believe today that my conduct is in accordance with the will of the Almighty Creator. In standing guard against the Jew I am defending the handiwork of the Lord"


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

[deleted]

[deleted]

What if that IS a bot saying that? Huh, huh?

Oh no.....

As if there were not too many annoying bots on Reddit already.

/u/waterguy12 would probably find this enlightening.

RemindMe! 24 hours "how is /u/waterguy12 enjoying their inbox"

[deleted]

Because there is no API provided by http://explainxkcd.com

Edit: Worded my answer more appropriately

Great write up

Brace yourselves, Reddit bots are coming.

Holy shit you are awesome. I've been thinking this past week about writing a bot for reddit but had no idea how to get started. Thank you!

Thanks for putting this together! Just getting started and haven't spent much time with Python but seems like a nice reach project as I learn.

I hope you find it useful

!author Ernest Cline

  1. Ready Player One by Ernest Cline. (4.31/5 *) Link

  2. Armada by Ernest Cline. (3.49/5 *) Link

  3. The Importance of Being Ernest by Ernest Cline. (3.94/5 *) Link

  4. Ernest Cline by Jesse Russell. (5.00/5 *) Link

  5. Summary of Ready Player One: by Ernest Cline | Summary & Analysis by aBookaDay. (4.18/5 *) Link


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!author Rick Riordan

  1. The Lightning Thief (Percy Jackson and the Olympians, #1) by Rick Riordan. (4.23/5 *) Link

  2. The Sea of Monsters (Percy Jackson and the Olympians, #2) by Rick Riordan. (4.23/5 *) Link

  3. The Battle of the Labyrinth (Percy Jackson and the Olympians, #4) by Rick Riordan. (4.39/5 *) Link

  4. The Lost Hero (The Heroes of Olympus, #1) by Rick Riordan. (4.35/5 *) Link

  5. The Last Olympian (Percy Jackson and the Olympians, #5) by Rick Riordan. (4.50/5 *) Link


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

!author Edgar Allen Poe

  1. The Dreamer: Edgar Allen Poe by Mary Newton Stanard. (3.86/5 *) Link

  2. The Works of Edgar Allen Poe by Edgar Allan Poe. (4.44/5 *) Link

  3. The Works of Edgar Allen Poe: Volume 1 by Edgar Allan Poe. (4.30/5 *) Link

  4. Great Works of Edgar Allen Poe by Edgar Allan Poe. (4.40/5 *) Link

  5. The Zebra by LoyalLiar. (4.33/5 *) Link


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

You need to start a blog/website! If you can contribute knowledge like this it deserves to be enclosed in something more withstanding than reddit post!

you say remember we created a praw.ini earlier but i never saw any reference to that prior.

Please see https://github.com/aydwi/explainxkcdbot/blob/master/README.md

I tried to turn your GitHub links into permanent links (press "y" to do this yourself):


^(Shoot me a PM if you think I'm doing something wrong.)^( To delete this, click) ^here^.

Do we create the file in the project directory?

Nice work. I avoid the Requests library because it doesn't play nice with JavaScript. I built a bot to do mock fantasy football drafts on the ESPN website and put in several hours before getting to the final step and having to start over because they arbitrarily decided to use a JS button instead of an HTML button.

Selenium-webdriver is the way to go IMO

[removed]

If you have windows 10 you should be able to get ubuntu terminal by turning on developer mode and running "lxrun /install /y" in a cmd.

https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/

It is not necessary. But installing and managing packages/libraries in a Windows environment follows a different process

http://scoop.sh/

It's a Windows package manager like Chocolatey but for dev tools. Watch the video at that link to see how it works.

EDIT Nevermind, solution found. I was making a simple mistake when trying to convert from bytes to string.**

First of all, thank you for this post. We all appreciate the time and effort you put into this.

I do have a question though. I feel like this is a simple problem, but I've been struggling to find a solution. My bot is supposed to return price information of trading cards. I'm using yugiohprices api to get the information.

I'm trying to use: JData = json.loads(myResponse.content)

The issue is that the response is given in bytes and needs to be a string. I've tried a few ways to convert bytes to string but haven't been successful. I really do appreciate any help, thanks in advance.

So how much Adderall have you consumed in the past 24 hours?

None. Coffee on the other hand...

thanks for the comments about using r/test

. . . and section 1 has a typo, out instead of our

Why do you have this in your regular expression before https://www.xkcd.com? I don't see why it needs to be there.

[a-z]*[A-Z]*[0-9]*

I have a question.

Since i am tight on budget, can i use my Android Phone (Xperia ZL) as a tools instead of Raspberry Pi?

Maybe. Look into QPython, QPython3, or Termux.

Awesome guide, thank you so much for this!

It's been removed, what happened?

Still cached on Google. Copy the post title and paste it into google...

Can't find it on Indian domain, do you know the OP's GitHub ID?

I do not. You could message them directly though.

Good news , I found the link on one of the bot's test threads, 👍

Thanks for delivering,OP!

I had to :)

Did you just show everyone how to break Reddit? O.0

Que Reddit getting spammed by thousands of home made bots - maybe this is how Skynet is born...

Thanks, I know what I'll be doing with my next weekend.

Remindme! 24 hours "read and maybe try"

No need to include a 'maybe' in there - we're all here to learn and willing to help each other out of you're stuck :-)

Thanks, bit i added maybe as ai am unsure how much time I'll have or if i can think of an idea i want to try

[deleted]

RemindMe! 6 weeks

[deleted]

I will be messaging you on 2017-08-13 15:51:01 UTC to remind you of this link.

4 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

^(Parent commenter can ) ^(delete this message to hide from others.)


|^(FAQs)|^(Custom)|^(Your Reminders)|^(Feedback)|^(Code)|^(Browser Extensions) |-|-|-|-|-|-|

How large can commented.txt get before it starts taking a while to read into memory?

I wouldn't even write the Id to a text file. You could just try saving every comment you reply to, then doing a check if the comment is saved before you reply. The methods are .save() and .saved

You can do that, but accessing a local copy of comment ID is much faster than accessing the state of a comment (saved or unsaved) over the Reddit API

I doubt it's a noticable slow down. Also, are you sure the save state isn't already loaded when you fetch comments, or is it a property which makes a request only when you access the attribute? If so, the only additional request is to save the comment.

I can't provide an exact figure on the size of the file without running some tests myself.

You can access the file element wise instead of loading the whole file when reading, which will be a slower process.

Thanks for this!

I was just looking for this as a way to start out in Python (and really something other than Powershell) and it is great. Thank you for putting work into this.

Awesome write up!

Thanks a lot

Thanks! Will give this a go at some point soon. Another possible use for my pi.

Can I use R to create a similar bot?

You can write a bot in R. There are some Reddit API wrappers available for R, you can also check them out!

How kind of you, man. This is exactly what I've needed to begin learning Python. You have my gratitude.

I appreciate it

This looks great! I've been looking for some fun project ideas to help me learn Python. Thanks for the write-up.

Brilliant and very clearly explained. Thank you

Thanks man great guide

Help! When I enter in the python3 botname.py command nothing happens, it seems like it's loading something, but then it just prompts me right back to terminal line.

Can you post the code you are trying to run

As in what I'm putting into the terminal or my .py file?

Your .py file

https://github.com/MikeMacLean95/redditbots/blob/master/bojackbot.py

You should not be using re if you are not looking to detect patterns

Try replacing this block:

match = re.findall("Hey Todd!")
    if match:

With:

if 'Hey Todd!' in comment.body:

I tried to turn your GitHub links into permanent links (press "y" to do this yourself):


^(Shoot me a PM if you think I'm doing something wrong.)^( To delete this, click) ^here^.

Defined main inside of my run function

Oh yeah just noticed that after posting my earlier comment!

....this would've been helpful a week or two ago when I made /u/me_irl-meme_bot. Oh well.

Commenting to save

I'm going to do it. First question what is a Reddit Bot? Second question, what do pythons eat?

I need someone to build me an auto checkout bot for an art website that I frequent. The small edition sizes makes it nearly impossible to score because other users are using bots.

Thank you so much for this. I've always wanted to learn python and this looks like a fun project.

Well thanks for this!

Looking forward to trying this out in the near future, thanks for posting it!

Saving for later.

Oh man! This is going to be one of my goals. I'm currently still learning c# but i fiddle with phyton which will be my next language to learn. Then I'll get to it as one of my first thing ls to build

If I had gold Id give it to you. Thank you!

I love you.

OP Delivers!

Thanks so much. I'm looking forward to working through this.

Which version on Python should people use for this code? There are big differences between Python 2 and 3, right?

See this: https://github.com/aydwi/explainxkcdbot/blob/master/README.md

I tried to turn your GitHub links into permanent links (press "y" to do this yourself):


^(Shoot me a PM if you think I'm doing something wrong.)^( To delete this, click) ^here^.

Nice work! I'm definitely recommending this post to programming newbies since your explanations were so lucid.

.

OP is a God

Been wanting to do some python for a while and this seems like a great into. Thanks!

You should put this guide on Github so we can make pull requests.

Hi, I'd like to know why does it take so long to check whether a comment as already been replied to. To me it seems like it should be extremely fast, it just has to open a 1KB txt file and check whether it has some number in it or not. But it takes anywhere from 5-15 seconds for me.

Thanks for the nice tutorial, built a nice bot with this. :)

saving this for weekend fun!

Thank you very much for the tutorial, there's some really good stuff here. Anytime you want to make some tutorials I'm willing to follow them!

I can get the bot to find the comments, print them out, and it says it replies to them. The praw API returns a post ID with a successful post, however, the bot doesn't comment on my thread. I limited the amount of comments to get and it still can't find it despite my test thread being almost brand new. Is there a way to directly use the comment ID's to find the url of the actual post. I've tried to copy and past them after the r/test/comment ID url to no avail.

Please show me the code you are trying to run. I'll try to help.

https://pastebin.com/8yvbkUtD

As far as I know it's pretty much exactly the code in the tutorials. I appreciate you looking into it.

This dude's a genius :)

Would anyone be interested in a group project to make a r/popular/all bot for posts from r/Sweden?

Basically:

Read title, translate (google translate or whatever), add to comment.

Read comments above certain upvote count or top comments after x hours, translate, add to comment.

Maybe some way to direct better translation to appropriate Google area.

Post.

Hi so I want to start this but I'm already having trouble installing this pip thing. Here there are two links that both are supposed to tell me how to install it but one says something about linux (I have win 10) and the other is a python file? Is there no installer? Also Pycharm shows me that the code has 5 errors and countless typos.

EDIT: Also how do I get PRAW, Python Requests and Beautiful Soup 4?

RemindMe! Tomorrow

RemindMe! 3 days

!book Mein Kampf

hey, so you say in step 2 that earlier you made praw.ini, but I'm not sure where you do this. Was that actually what was done in step 1, or was it in a link I missed.

Thank you for the guide.

I am now a fully-functional bot set on ~~destroying humanity~~ improving reddit usability.

Beep boop.

Is there a streaming api instead of polling 250 comments at a time?

Yes there is. If you are using PRAW, the class SubredditStream provides submission and comment streams. You can read the documentation here.

I chose to retrieve 250 comments to maintain simplicity at the time.

Thanks for the reply! That's great thank you. I can't believe I missed it when looking at the API.

whats the advantage using a stream?

Thanks for posting this, I have a few questions.

First of all, does the string for user_agent come from anything, or is it just a description?

Second, when on windows, since the file path uses backslashes, should I write the path name as 'c:\users\...'?

Third, I couldn't find anything titled client_id on the app page of my reddit account. I'm assuming that the id is the string under the words 'personal use script.' Is that correct?

Again, thank you so much for writing this up, I'm really trying to learn more about applying what I know about coding to real projects. This helps so much.

The user_agent is a descriptive string. See this for more information.

The path should specify the location of the file, and it can take any form depending on your machine

Yes, the client_id is the string under the words 'personal use script'

why removed ? I was just about to get it done

[deleted]

aah thanks a lot your post reaply helped me out and got me to do something productive ;)

Oh I think the archive link is not working it just redirects to this post which is removed or my phone is just buggy

Thanks

Thanks!! This is just the kind of stuff we need

Great write up! A project that I've been wanting to take on for a while now!

Sweet baby Jesus. I got 5 hours left on shift with fuck all left to do.

Thank you for the exercise.

Been wanting to write a bot lately, this will come in handy. Thanks!

Thank you so much for this! I will be experimenting as soon as my homework is done lol

[removed]

You know that you can use the "save" feature below the post?

Saved

!book Birthright

  1. Birthright by Nora Roberts. (3.99/5 *) Link

On a hot July afternoon, a worker at an Antietam Creek construction site drives the blade of his backhoe into a layer of soil — and strikes a 5,000-year-old human skull. The discovery draws plenty of attention and a lot of controversy. It also changes the life of one woman in ways she never expected...As an archaeologist, Callie Dunbrook knows a lot about the past. But her own past is about to be called into question. Recruited for her expertise on the Antietam Creek dig, she encounters danger — as a cloud of death and misfortune hangs over the project, and rumors fly that the site is cursed. She finds a passion that feels equally dangerous, as she joins forces in her work with her irritating, but irresistible, ex-husband, Jake. And when a strange woman approaches her, claiming to know a secret about Callie’s privileged Boston childhood, some startling and unsettling questions are raised about her very identity.Searching for answers, trying to rebuild, Callie finds that there are deceptions and sorrows that refuse to stay buried. And as she struggles to put the pieces back together, she discovers that the healing process comes with consequences — and that there are people who will do anything to make sure the truth is never revealed


^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/BookBot

Word cloud out of all the comments.

I hope you like it

*Disclaimer: Due to restrictions by your ISP If you click on the link, a $0.10 charge will be billed to your account

RemindMe! 130 hours ":D"

Thank!

This is pretty cool

Can't wait to read this. Thanks so much man.

Remind me 1 day

Fuck ya

Bookmark :)

.

Saving

Awesome, saved for later.

Saving for use later.

There is a "save" link right below the post body. No need to comment for saving.

Welcome to the front page!

Very intersting thanks

🐐 nuff said , I'll work in this tonite

!remindme

Wait, does this mean I'll be running my bot from my machine? is there a free online hosting where I could run my bot amok 24/7 for free?

there will not be anything more free than running it from your machine lol. Look around though there are some basic free hostings out there.

https://www.heroku.com/

Comment