User Controls

October is Domestic Violence Awareness Month

  1. #1
    Bradley Florida Man
    How that make you feel?

    "It's mother beating good." -LSD, 2014
  2. #2
    Bradley_b, would you beat your Mom up if she took your last latte out of the fridge, drank it, and then you rudely discovered it wasn't there anymore?
  3. #3
    the man who put it in my hood Black Hole [miraculously counterclaim my golf]
    call me a non coder you son of a bitch

    import re
    from bs4 import BeautifulSoup
    import requests

    url = "https://en.wikisource.org/wiki/Author:Barack_Obama/Presidential_Proclamations"
    response = requests.get(url)
    soup = BeautifulSoup(response.content, 'html.parser')
    proclamations = soup.find_all('td')

    unique_proclamations = set()

    # Regular expression pattern to remove years
    pattern = re.compile(r',\s*\d{4}')

    for item in proclamations:
    proclamation_text = item.get_text().strip()
    # Remove the year (e.g., ", 2013") before storing the proclamation
    proclamation_text_without_year = pattern.sub('', proclamation_text)
    unique_proclamations.add(proclamation_text_without_year)

    # enhancement for proclamations containing the word 'month'
    awareness_months = {item for item in unique_proclamations if 'month' in item.lower()}

    for month in awareness_months:
    print(month)
    The following users say it would be alright if the author of this post didn't die in a fire!
  4. #4
    Bradley Florida Man
    Originally posted by ⠀⠀⠀⠀⠀⠀ Bradley_b, would you beat your Mom up if she took your last latte out of the fridge, drank it, and then you rudely discovered it wasn't there anymore?

    No but I would slap another man I live with if he threw a bottle of vodka at my head while we're drinking.
  5. #5
    ner vegas African Astronaut
    Originally posted by the man who put it in my hood call me a non coder you son of a bitch

    import re
    from bs4 import BeautifulSoup
    import requests

    url = "https://en.wikisource.org/wiki/Author:Barack_Obama/Presidential_Proclamations"
    response = requests.get(url)
    soup = BeautifulSoup(response.content, 'html.parser')
    proclamations = soup.find_all('td')

    unique_proclamations = set()

    # Regular expression pattern to remove years
    pattern = re.compile(r',\s*\d{4}')

    for item in proclamations:
    proclamation_text = item.get_text().strip()
    # Remove the year (e.g., ", 2013") before storing the proclamation
    proclamation_text_without_year = pattern.sub('', proclamation_text)
    unique_proclamations.add(proclamation_text_without_year)

    # enhancement for proclamations containing the word 'month'
    awareness_months = {item for item in unique_proclamations if 'month' in item.lower()}

    for month in awareness_months:
    print(month)

    that's gay and retarded
  6. #6
    Bradley Florida Man
    Originally posted by the man who put it in my hood call me a non coder you son of a bitch

    import re
    from bs4 import BeautifulSoup
    import requests

    url = "https://en.wikisource.org/wiki/Author:Barack_Obama/Presidential_Proclamations"
    response = requests.get(url)
    soup = BeautifulSoup(response.content, 'html.parser')
    proclamations = soup.find_all('td')

    unique_proclamations = set()

    # Regular expression pattern to remove years
    pattern = re.compile(r',\s*\d{4}')

    for item in proclamations:
    proclamation_text = item.get_text().strip()
    # Remove the year (e.g., ", 2013") before storing the proclamation
    proclamation_text_without_year = pattern.sub('', proclamation_text)
    unique_proclamations.add(proclamation_text_without_year)

    # enhancement for proclamations containing the word 'month'
    awareness_months = {item for item in unique_proclamations if 'month' in item.lower()}

    for month in awareness_months:
    print(month)

    I'm convinced!
  7. #7
    Elbow African Astronaut
    Beautiful Soup
  8. #8
    the man who put it in my hood Black Hole [miraculously counterclaim my golf]
    Originally posted by ner vegas that's gay and retarded

    it just purts a list it's actually quite a innovative piece of technology as it rips directly from list elements on any page and removes duplicates so can be used on any site with such elements like any wiki, probably
Jump to Top