Commit dc8ad10d authored by Benavides Ontiveros's avatar Benavides Ontiveros
Browse files

add Docker file

parent a8cfb1d6
# Use a lightweight Python base image
FROM python:3.10-slim
# Set working directory inside container
WORKDIR /app
# Copy dependency file first (for caching)
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your application code
COPY . .
# Set environment variables (you can override these when running the container)
ENV REDDIT_CLIENT_ID= \
REDDIT_CLIENT_SECRET= \
PORT=8000
# Expose the port your app runs on
EXPOSE ${PORT}
# Command to run your Python app (update as needed)
# For example, if you have an app.py file:
CMD ["python", "app.py"]
...@@ -50,5 +50,8 @@ json_output = json.dumps(data, indent=4) ...@@ -50,5 +50,8 @@ json_output = json.dumps(data, indent=4)
print(json_output) print(json_output)
# Optionally, save to file: # Optionally, save to file:
with open("reddit_data.json", "w") as f: # with open("reddit_data.json", "w") as f:
# json.dump(data, f, indent=4)
with open("/app/output/reddit_data.json", "w") as f:
json.dump(data, f, indent=4) json.dump(data, f, indent=4)
[ [
{ {
"id": "1oguyfk", "id": "1ok06qs",
"title": "US airports report over 20 air traffic controller shortage triggers in one day | US news", "title": "Top Trump Officials Are Moving Onto Military Bases (Gift Link)",
"score": 15491, "score": 3815,
"url": "https://www.theguardian.com/us-news/2025/oct/26/air-traffic-controller-shortages-shutdown", "url": "https://www.theatlantic.com/politics/archive/2025/10/trump-officials-military-housing-stephen-miller/684748/?gift=1ga2TvL-DbuHDQIcYF7oR6IRKlFiVQjpKpNmoQZhUgw",
"num_comments": 542, "num_comments": 406,
"created_utc": 1761510296.0, "created_utc": 1761832059.0,
"comments": [ "comments": [
{ {
"id": "nljcypt", "id": "nm6y8vl",
"body": "Imagine not paying people and expecting them to show up", "body": "I suspect that is to get ahead of the horrible things they plan to do as opposed to the horrible things they have already done.",
"score": 6309, "score": 2948,
"created_utc": 1761510677.0 "created_utc": 1761832620.0
}, },
{ {
"id": "nljo64g", "id": "nm6zvvb",
"body": "*Duffy noted air traffic controllers have been taking on second jobs to try to supplement the lost income.*\n\n*\u201cThey\u2019re taking second jobs, they\u2019re out there looking,\u201d he said.*\n\nProbably not the best situation to have air traffic controllers, doing one of the most stressful jobs imaginable and further stressed out by pay issues, to be further burnt out by working a SECOND job.", "body": "Any American not highly concerned about this is not paying attention or has no concept of self-preservation. This is highly concerning.",
"score": 783, "score": 653,
"created_utc": 1761514124.0 "created_utc": 1761833110.0
}, },
{ {
"id": "nljdc5k", "id": "nm6xgpb",
"body": "This is how trump's last shutdown ended. No ATC.", "body": "Protection from us proles.",
"score": 2613, "score": 715,
"created_utc": 1761510790.0 "created_utc": 1761832387.0
}, },
{ {
"id": "nlje40k", "id": "nm6xh27",
"body": "October 28th is supposed to be the first \u201cpaycheck\u201d with $0, after ATCs got a <90% paycheck two weeks ago. I wonder if they\u2019ll even bother to print them; can you even see a direct deposit of $0 on your bank statement?\n\nIt sounds to me like the guardians of pedophiles have about two days left before things get significantly worse. Three days after that, there will be no SNAP payments *and* ACA premiums will skyrocket. I\u2019m sure they have a concept of a solution in the works. Any predictions?\n\nEdit: bank statement, not statue. Also, several people have confirmed they have already seen their $0 pay for an honest two weeks\u2019 work. What a fucking gut punch, my heart goes out to you guys (*not* the Nazi salute type, though).", "body": "Moving to protect themselves from the public for the inevitable Marshall law they are planning.\n\nEDIT: I know Martial Law, I have been corrected.",
"score": 1672, "score": 871,
"created_utc": 1761511020.0 "created_utc": 1761832389.0
}, },
{ {
"id": "nljecje", "id": "nm6ycnq",
"body": "Between this and snap it really feels either cold and calculated or chaotic and experimental.", "body": "They know when they start killing and shooting Americans in the street and the Constitution along with elections are dissolved we probably won't be too happy.",
"score": 890, "score": 517,
"created_utc": 1761511091.0 "created_utc": 1761832651.0
}, },
{ {
"id": "nljf89r", "id": "nm6yl9k",
"body": "I was actually considering an ATC job a few years back but when I looked into how much it wears you down I passed.", "body": "Main problem with surrounding yourself with guys with guns is that now yours surrounded by guys with guns.\u00a0",
"score": 338, "score": 226,
"created_utc": 1761511356.0 "created_utc": 1761832722.0
}, },
{ {
"id": "nljg0pb", "id": "nm6xvwe",
"body": "Airline and travel lobbies might be the biggest pressure against the Trump admin.\n\n31m Americans flew for Thanksgiving in 2024, and the average price of a plane ticket is ~$360. That's over $11.1b for flights alone each year for Thanksgiving travel, which doesn't include all the cargo flights every day.", "body": "Giving them a place to hide so when they kick up shit nit even reporters will be allowed on base to confront them.",
"score": 302, "score": 100,
"created_utc": 1761511593.0 "created_utc": 1761832512.0
}, },
{ {
"id": "nljdssy", "id": "nm6z6ap",
"body": "It\u2019s a mess today.\n\nLeft RDU for Dallas and ended up in Midland. From Midland to Dallas, Dallas to Albuquerque, and hopefully Albuquerque to Vegas. Who knows where I\u2019ll end up next!", "body": "They just want the free housing. I can\u2019t get the article to open but I\u2019m willing to bet they are taking residences meant for general and base commanders not the houses for lower level grunts.",
"score": 332, "score": 122,
"created_utc": 1761510928.0 "created_utc": 1761832895.0
}, },
{ {
"id": "nljosu2", "id": "nm6y7wo",
"body": "Don\u2019t worry, we gave Argentina $20B and will give them $20B more.", "body": "because they are afraid but what makes them think the military is on their side? we've already seen much resistance from the higher ups that think this administration is a joke. proudboy ICE jerk offs aside, they will not be respected.",
"score": 96, "score": 68,
"created_utc": 1761514332.0 "created_utc": 1761832613.0
}, },
{ {
"id": "nljmgjv", "id": "nm6zmxd",
"body": "How long until they try to use a sycophantic LLM as air traffic control and it gets a bunch of people killed?", "body": "Does anyone else see the writing on the wall? This isn't just an \"oh you're over reacting\" scenario anymore.",
"score": 68, "score": 44,
"created_utc": 1761513571.0 "created_utc": 1761833034.0
} }
] ]
}, },
{ {
"id": "1ogo3kz", "id": "1ojn0ga",
"title": "Food benefits set to expire for 41 million people as US shutdown continues", "title": "Trump asks Pentagon to immediately start testing US nuclear weapons",
"score": 23582, "score": 14467,
"url": "https://www.theguardian.com/us-news/2025/oct/26/food-benefits-federal-shutdown", "url": "https://www.reuters.com/world/china/trump-asks-pentagon-immediately-start-testing-us-nuclear-weapons-2025-10-30/",
"num_comments": 2223, "num_comments": 1710,
"created_utc": 1761494012.0, "created_utc": 1761788287.0,
"comments": [ "comments": [
{ {
"id": "nlhuxsr", "id": "nm4rfrk",
"body": "The crazy thing is we have 12% of America on food assistance.", "body": "\"The nuclear arms race is like two sworn enemies standing waist deep in gasoline, one with three matches, the other with five.\" - Carl Sagan",
"score": 5258, "score": 5556,
"created_utc": 1761494872.0 "created_utc": 1761794751.0
}, },
{ {
"id": "nlhtfpo", "id": "nm4t9f5",
"body": "Looks like we'll unfortunately see how quickly public sentiment shifts towards those in power once people start missing meals.\u00a0", "body": "Most presidents visit Japan and come away with a firmer resolution never to use atomic weapons again. Trump leaves Japan and is like, \u201coh yeah, that reminds me, let\u2019s get this shit started up again.\u201d",
"score": 3990, "score": 7364,
"created_utc": 1761494412.0 "created_utc": 1761795498.0
}, },
{ {
"id": "nlhw5lh", "id": "nm4sgmo",
"body": "I\u2019m just reading the book The Jungle by Upton Sinclair. It\u2019s crazy how this book represents so many things today. It was written in 1906. We are heading down a slippery slope.", "body": "All these old MFers hell-bent on destroying the earth. Go to the nursing home already.",
"score": 1017, "score": 5807,
"created_utc": 1761495244.0 "created_utc": 1761795166.0
}, },
{ {
"id": "nli7f6a", "id": "nm4r7a1",
"body": "Our system is catastrophically\u00a0 broken that 41 million need to be recieving a food benefit.\u00a0 Something is very, very wrong.", "body": "Is this the same guy that claimed he stopped eight wars?",
"score": 216, "score": 1923,
"created_utc": 1761498650.0 "created_utc": 1761794656.0
}, },
{ {
"id": "nlht4cs", "id": "nm4rgc1",
"body": "Cool, but the Orange has a ballroom now.", "body": "This sounds promising. Maybe student loans won't matter after all.",
"score": 2303, "score": 1169,
"created_utc": 1761494316.0 "created_utc": 1761794757.0
}, },
{ {
"id": "nlih3zh", "id": "nm4qync",
"body": "This will affect you even if you do not receive food benefits. That is a significant amount of money to suddenly remove from the economy without causing widespread havoc. \n\nRegardless, the Democrats should not cave.", "body": "Trump hand picked his cabinet to be 25th Amendment-proof. Look at the people who left around this time during his last administration. Now look at who left now. \n\nSCOTUS handed him the keys, Johnson gassed up the car. We're all in the back seat.",
"score": 304, "score": 2408,
"created_utc": 1761501378.0 "created_utc": 1761794561.0
}, },
{ {
"id": "nlhuofk", "id": "nm4qrr4",
"body": "Every single one of my acquaintances and family members that are on food stamps are Trump-MAGA lovers. Interested to see how this plays out.", "body": "Shit. Someone let him watch Netflix on the plane trip.",
"score": 762, "score": 477,
"created_utc": 1761494791.0 "created_utc": 1761794485.0
}, },
{ {
"id": "nlhv3sd", "id": "nm4rnx9",
"body": "Lots of rural folk that voted Trump are on SNAP, but they will be told to blame Biden, Obama, they may even blame the Hunter Biden penis. But at least Argentina is great again and Trump gets a ballroom and ICE gets cool weapons to use on Americans, and some cool planes.", "body": "We got here sooner than I expected.\n\n\nAnyone still expecting an adult in the room to magically appear is about to be extremely and severely upset.",
"score": 265, "score": 630,
"created_utc": 1761494923.0 "created_utc": 1761794842.0
}, },
{ {
"id": "nli10d8", "id": "nm5fbtz",
"body": "Make America Great ^depression Again", "body": "Republicans would be crying, shitting their pants if a Democratic President said this. They'd ask for removal from office too.\n\nTrump asks for nukes to be tested and they sleep. There's literally no fucking reason to actively test nukes anymore. That's old timey shit. It's been done with computers for DECADES. It's bad for the environment\u00a0and extremely wasteful to test them.",
"score": 75, "score": 188,
"created_utc": 1761496746.0 "created_utc": 1761807037.0
}, },
{ {
"id": "nlhshks", "id": "nm4wdav",
"body": "Working as intended. DOGE 2.0.", "body": "I can't comprehend the absolute strangle hold he has on the Republican party. Congress has razor thin margins and somehow the can't get a handful of Republicans to fucking pump the brakes on this dumb fuck.",
"score": 555, "score": 234,
"created_utc": 1761494126.0 "created_utc": 1761796825.0
} }
] ]
}, },
{ {
"id": "1ogt27v", "id": "1ojqi6d",
"title": "Trump administration posts notice that no federal food aid will go out Nov. 1", "title": "\u2018This is a big deal\u2019: Health Canada approves 1st drug to slow Alzheimer\u2019s disease",
"score": 3549, "score": 3345,
"url": "https://apnews.com/article/food-aid-government-shutdown-snap-trump-democrats-8a52a63b26a707ea676962226b090bb1", "url": "https://globalnews.ca/news/11500367/health-canada-approves-alzheimers-treatment/",
"num_comments": 359, "num_comments": 64,
"created_utc": 1761505740.0, "created_utc": 1761798768.0,
"comments": [ "comments": [
{ {
"id": "nljudbt", "id": "nm5190j",
"body": "There is a 5 billion dollar emergency fund. \n\n[https://www.politico.com/news/2025/10/24/snap-food-aid-shutdown-usda-00622690](https://www.politico.com/news/2025/10/24/snap-food-aid-shutdown-usda-00622690)", "body": "I sincerely hope this drug works and that there needs to be more money funded to research other treatments against this. Alzheimier's disease is horrible and not only it destroys the person who has Alzheimers, but with everyone who's around that person",
"score": 2059, "score": 261,
"created_utc": 1761516092.0 "created_utc": 1761799095.0
}, },
{ {
"id": "nljz03d", "id": "nm51gi4",
"body": "Democrats should run ads nationally talking about the $200 million SNAP cuts, the $300 million ballroom, $20 billion for Argentina, the new DHS planes, and so on. They should also say how they had agreed to an extension to prevent the shutdown.\n\nIs there anybody in charge at the DNC? How are they fucking up the messaging on this topic?", "body": "HELL YEAH. Hopefully this is the beginning of a series of further discoveries to eliminate the disease in the future. I also hope this buys everyone time for that hope to become a reality.",
"score": 988, "score": 78,
"created_utc": 1761517649.0 "created_utc": 1761799199.0
}, },
{ {
"id": "nljw0gb", "id": "nm51idj",
"body": "\u201cBottom line, the well has run dry,\u201d the USDA notice says. \u201cAt this time, there will be no benefits issued November 01. We are approaching an inflection point for Senate Democrats.\u201d\n\nBro, You can't say shit like that. The Republicans hate ACA so fucking bad they're willing to let kids starve. See how that can turn around.", "body": "Good news. Alzheimer's terrifies me.",
"score": 987, "score": 50,
"created_utc": 1761516634.0 "created_utc": 1761799226.0
}, },
{ {
"id": "nljv0di", "id": "nm670ku",
"body": "Everyone in the US who voted for Trump because he cares about American jobs and making America great again, remember this. He doesn\u2019t care about you. He never did and never will.", "body": "This drug has been available in the U.S. for over a year now. Slows the disease by about 20% but it\u2019s far from a cure. \nSource: I am a neuroscientist that works on Alzheimer\u2019s prevention",
"score": 628, "score": 19,
"created_utc": 1761516302.0 "created_utc": 1761822801.0
}, },
{ {
"id": "nljw9i7", "id": "nm51u9g",
"body": "Meanwhile, he wants 230 million dollars for his \u201cpain and suffering\u201d experienced when he was being justifiably prosecuted for stealing classified government property.", "body": "It\u2019s great progress like this can still happen in a world that feels increasingly dark. I imagine someone will come along and tell us to temper our expectations, but I\u2019m hopeful",
"score": 212, "score": 33,
"created_utc": 1761516718.0 "created_utc": 1761799391.0
}, },
{ {
"id": "nljucqh", "id": "nm5ojze",
"body": "They spent it all on Argentina and the Epstein ballroom.", "body": "Sadly, not a very good drug: questionable clinical efficacy, dangerous side effects and complicated treatment (intravenous dosing, a lot of mri monitoring).\n\nThere's a better one on the horizon, oral pill with much better efficacy, up for approval in 2026 in Europe called blarcamesine:\n\nhttps://www.alzheimer-europe.org/news/anavex-life-sciences-submits-marketing-authorisation-approval-alzheimers-drug-blarcamesine-ema?language_content_entity=en\n\nhttps://www.alzforum.org/therapeutics/blarcamesine",
"score": 342, "score": 37,
"created_utc": 1761516086.0 "created_utc": 1761812728.0
}, },
{ {
"id": "nljwi9d", "id": "nm55z9l",
"body": "Meanwhile argentina gets $40 billion dollars, yaddy yada yada. Mericuh first!", "body": "Meanwhile RFK Jr is likely already moving to ban it in the US and promote liquid mercury injections directly into the spine or some shit instead.",
"score": 73, "score": 24,
"created_utc": 1761516798.0 "created_utc": 1761801543.0
}, },
{ {
"id": "nljyr0c", "id": "nm53rci",
"body": ">\u201cBottom line, the well has run dry,\u201d the USDA notice says. \u201cAt this time, there will be no benefits issued November 01. We are approaching an inflection point for Senate Democrats.\u201d\n\nIt has been [0] days since the last Hatch Act violation in this administration.", "body": "US president absolutely does not need that. Let his brain rot",
"score": 91, "score": 16,
"created_utc": 1761517562.0 "created_utc": 1761800356.0
}, },
{ {
"id": "nljukd7", "id": "nm5wlkb",
"body": "\"But I just didn't like her laugh\"", "body": "Fantastic news. My grandmother has Alzheimer's - watching the progression of it erode who she is as a person and the burden it put on my family was awful. Wouldn't wish it on people I hate.",
"score": 199, "score": 3,
"created_utc": 1761516156.0 "created_utc": 1761817534.0
}, },
{ {
"id": "nljw3pc", "id": "nm5e79h",
"body": "Maybe some poor, white southerners will finally figure out a few brown people cleaning toilets and working in fields aren\u2019t their biggest problem after all. \n\nProbably not though.", "body": "My grandmother has Alzheimer's. Wish dish was discovered more quicker. She doesn't recognize me anymore and I don't want people to experience what I am. Hope this is the new door to other diseases too",
"score": 94, "score": 2,
"created_utc": 1761516665.0 "created_utc": 1761806352.0
} }
] ]
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment