import feedparser import requests from bs4 import BeautifulSoup from article import Article def get_antiwar_article(index = 0): d = feedparser.parse('http://original.antiwar.com/feed/') # d = feedparser.parse('http://news.antiwar.com/feed/') # entryExample = {'title': 'Why Iran Ruffles the Feathers of the United States', # 'title_detail': {'type': 'text/plain', 'language': None, 'base': 'https://original.antiwar.com/feed/', 'value': 'Why Iran Ruffles the Feathers of the United States'}, # 'links': [{'rel': 'alternate', 'type': 'text/html', 'href': 'https://original.antiwar.com/reza_behnam/2026/08/25/why-iran-ruffles-the-feathers-of-the-united-states/?utm_source=rss&utm_medium=rss&utm_campaign=why-iran-ruffles-the-feathers-of-the-united-states'}], # 'link': 'https://original.antiwar.com/reza_behnam/2026/08/25/why-iran-ruffles-the-feathers-of-the-united-states/?utm_source=rss&utm_medium=rss&utm_campaign=why-iran-ruffles-the-feathers-of-the-united-states', # 'comments': 'https://original.antiwar.com/reza_behnam/2026/08/25/why-iran-ruffles-the-feathers-of-the-united-states/#respond', # 'authors': [{'name': 'M. Reza Behnam'}], # 'author': 'M. Reza Behnam', # 'author_detail': {'name': 'M. Reza Behnam'}, # 'published': 'Wed, 26 Aug 2026 00:00:06 +0000', # 'published_parsed': time.struct_time(tm_year=2026, tm_mon=8, tm_mday=26, tm_hour=0, tm_min=0, tm_sec=6, tm_wday=2, tm_yday=238, tm_isdst=0), # 'tags': [{'term': 'Uncategorized', 'scheme': None, 'label': None}], # 'id': 'https://original.antiwar.com/?p=2012364243', # 'guidislink': False, # 'summary': 'Strip away the diplomatic briefings, Congressional hearings and the endless cable news loops about centrifuges, regional proxies and cyber attacks, and you hit a raw unvarnished nerve. What truly disturbs the United States about the Islamic Republic is not its policies, its rhetoric or even its nuclear ambitions.\xa0 It is Iran’s audacity to exist completely […]', # 'summary_detail': { # 'type': 'text/html', # 'language': None, # 'base': 'https://original.antiwar.com/feed/', # 'value': 'Strip away the diplomatic briefings, Congressional hearings and the endless cable news loops about centrifuges, regional proxies and cyber attacks, and you hit a raw unvarnished nerve. What truly disturbs the United States about the Islamic Republic is not its policies, its rhetoric or even its nuclear ambitions.\xa0 It is Iran’s audacity to exist completely […]' # }, # 'wfw_commentrss': 'https://original.antiwar.com/reza_behnam/2026/08/25/why-iran-ruffles-the-feathers-of-the-united-states/feed/', # 'slash_comments': '0', # 'post-id': '2012364243' # } # print(d.feed.title) # Antiwar.com entry = d.entries[index] title = entry.title author = entry.author published = entry.published[:-15] link = entry.link # print(entry.title) # print() # print(entry.author) # print() headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', } ###UNCOMMENT FOR LIVE ARTICLE # response = requests.get(entry.link, headers=headers) # soup = BeautifulSoup(response.content, "html.parser") # content_class = 'et_pb_module et_pb_post_content et_pb_post_content_0_tb_body'; # body = soup.find_all("div", class_=content_class) # text = '' # for e in body: # paragraphs = soup.find_all("p") # for p in paragraphs: # if p.text.startswith('If you liked this article'): # break # text += p.text + "\n\n" # # print(p.text) # # print() ###COMMENT FOR LIVE ARTICLE text = 'Strip away the diplomatic briefings, Congressional hearings and the endless cable news loops about centrifuges, regional proxies and cyber attacks, and you hit a raw unvarnished nerve.\n\nWhat truly disturbs the United States about the Islamic Republic is not its policies, its rhetoric or even its nuclear ambitions. It is Iran’s audacity to exist completely outside the American orbit; and make it work.\n\nWhen diplomatic pretenses are scrapped, we see that a major power does not spend billions of dollars, conduct regional wars and upend global markets out of pure legalistic devotion to global rules or nonproliferation treaties.\n\nThe conflict with the United States, is not about what Iran has in its centrifuges. Rather, it is about what Tehran represents to a hegemon that refuses to accept “no” and cannot tolerate a world not under its control.\n\nIf the mere possession of enriched uranium or atomic warheads was the ultimate redline, the outline of America’s animosities would look entirely different.\n\nThe “crossing the nuclear threshold” explanation collapses under the weight of obvious global contradictions. Washington, for example, has found ways to coexist, cooperate or outright partner with other nuclear-armed nations; from historical accommodations with Pakistan and India, to winking at Israel’s undeclared arsenal, and managing a pragmatic, albeit tense, approach to China and North Korea.\n\nIn the vocabulary of global superpowers, compliance is currency. Washington tolerates fierce enemies if they eventually capitulate; and it accommodates brutal allies if they submit to American domination. What empire dreads most is an uncooperative self-reliant country that refuses to bend the knee, yet stubbornly survives after decades of total economic siege.\n\nThe real reason Iran gets under the skin of the American foreign policy establishment, and why it has become its main target, has little to do with atoms, and everything to do with sovereignty, geography and the architecture of U.S. hegemony.\n\nFor decades, the unwritten rule of the post-Cold War order was simple: align with the U.S.-led global order, or be excluded and isolated. Most nations that initially balked had little choice but to integrate, bound by the weight of a dollar-dominated global economy. Difficult states were either absorbed or efforts were made to bring them into client-state relationships, or they are heavily monitored.\n\nIn 1979, Iran did the unforgivable. It rebelled and institutionalized a successful, unapologetic ideological revolution that expressly rejected U.S.-Israeli hegemony, and built an enduring political structure explicitly rooted in anti-imperialism and anti-Zionism. It proudly declared that a Middle Eastern state could chart its own destiny outside the Western framework.\n\nSince then, generations of U.S. policymakers have convinced themselves that crushing economic sanctions, diplomatic excommunication, assassinations and covert sabotage would inevitably lead to a popular implosion or “regime” collapse.\n\nWashington’s frustration has only deepened because its strategy has not worked.\n\nInstead, Iran adapted. It cultivated a culture of domestic self-sufficiency and pivoted Eastward; proving that a nation could survive outside the Western financial template. Washington has viewed Iran’s resilience, not simply as a policy challenge, but as a dangerous ideological precedent.\n\nOne has only to look at a map to understand Washington’s obsession with Iran.\n\nGeography is destiny; and Iran’s geographical location is the U.S. empire’s worst headache.\n\nPerched directly above the Strait of Hormuz, Iran sits at one of the most vital maritime crossroads on earth – the liquid throat through which massive amounts of the world’s energy passes daily.\n\nFor the better part of a century, “Pax Americana” in the region has rested on a chauvinist premise: the U.S. military will police the global commons, control energy chokepoints and dictate the terms of regional and global trade.\n\nThe Islamic Republic has defied this assumption and refuses to allow the U.S. to be the landlord of its backyard. To ensure its sovereignty and regional preeminence, Tehran has developed a robust asymmetrical military capability.\n\nTo a superpower accustomed to uncontested dominance across every ocean and air space, an “unmanaged” armed power sitting astride the global energy supply is an itch that cannot be scratched.\n\nWashington has anchored its regional hegemony through security alliances with Israel and Arab janissaries. In response, Iran engineered its own security architecture and counterweight to U.S.-Israel dominance through a network of non-state actors and regional alliances – the “Axis of Resistance” (Lebanon, Iraq, Yemen and Syria, before President Bashar al-Assad was overthrown in 2024).\n\nHowever one defines the “Axis of Resistance,” it has been a masterclass in strategic statecraft that has fundamentally checked Washington and Tel Aviv’s ambitions at almost every turn.\n\nIran and the U.S. approach regional politics through fundamentally irreconcilable worldviews.\n\nWashington acts like an indispensable global manager and boss. It makes the rules for the world and expects every other country to obey them without question. Iran, on the other hand, operates from a fiercely nationalistic, civilizational mindset that views foreign oversight as an existential insult.\n\nIran refuses to play the role of the chastised regional outcast, waiting for Western permission to participate. For the United States, witnessing Iran successfully institutionalize its defiance and cement its regional power would signal the end of its control over the Middle East.\n\nFundamentally, America’s frustration with Iran is not about its nuclear potential; it is about its independence. Iran is an enduring testament that despite all the aircraft carriers, economic blockades and diplomatic muscle of a global superpower, there are still places on earth that will look the empire in the eye and say, NO.\n\n© 2026, M. Reza Behnam, Ph.D.\n\nDr. Behnam is a political scientist who specializes in comparative politics with a focus on West Asia. His “Cultural Foundations of Iranian Politics,” published by University of Utah Press, and still in print, was recognized by Choice as Outstanding Academic Book for 1987–1988.' return Article(title, author, published, text, link)