{"id":28065,"date":"2024-06-15T02:27:08","date_gmt":"2024-06-15T00:27:08","guid":{"rendered":"https:\/\/www.graviton.at\/letterswaplibrary\/need-help-scraping-text-from-benefits-websites-for-ai-project-python-beautifulsoup-selenium\/"},"modified":"2024-06-15T02:27:08","modified_gmt":"2024-06-15T00:27:08","slug":"need-help-scraping-text-from-benefits-websites-for-ai-project-python-beautifulsoup-selenium","status":"publish","type":"post","link":"https:\/\/www.graviton.at\/letterswaplibrary\/need-help-scraping-text-from-benefits-websites-for-ai-project-python-beautifulsoup-selenium\/","title":{"rendered":"Need Help Scraping Text From Benefits Websites For AI Project (Python, BeautifulSoup, Selenium)"},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>Hi everyone,<\/p>\n<p>I&#8217;m currently taking a course on Python, and I&#8217;ve been learning web scraping with BeautifulSoup and Selenium. My situation is a bit unique and time-sensitive, so I\u2019m reaching out to this amazing community for some assistance.<\/p>\n<p>My wife and son are both disabled, and navigating through benefits websites to find the best solutions and information has become quite overwhelming. My goal is to scrape the text from a few key benefits websites and input this data into an AI system to help manage and sift through the information more effectively.<\/p>\n<p>Despite my efforts, I&#8217;m still struggling to get the code right. I\u2019m really keen to learn and understand how to do this properly, but given my circumstances, I could really use a bit of a jump start with some working code examples.<\/p>\n<p>If anyone could provide a working script or point me in the right direction, especially using Python with BeautifulSoup or Selenium, I would be incredibly grateful. Here are a couple of specific websites I need to scrape:<\/p>\n<p>  <a href=\"https:\/\/www.service-public.fr\/\">https:\/\/www.service-public.fr\/<\/a> However, the main body of content is under the &#8216;Practical sheets by theme&#8217; drop down if you translate it to English. <a href=\"https:\/\/www.aide-sociale.fr\/\">https:\/\/www.aide-sociale.fr\/<\/a>  <\/p>\n<p>If it&#8217;s easier to share a working code snippet for just one website, that\u2019s perfectly fine too.<\/p>\n<p>Thank you so much for taking the time to read this and for any help you can offer. I really appreciate it!<\/p>\n<\/div>\n<p><!-- SC_ON -->   submitted by   <a href=\"https:\/\/www.reddit.com\/user\/myway_thehardway\"> \/u\/myway_thehardway <\/a> <br \/> <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/1dg55x5\/need_help_scraping_text_from_benefits_websites\/\">[link]<\/a><\/span>   <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/1dg55x5\/need_help_scraping_text_from_benefits_websites\/\">[comments]<\/a><\/span><\/p><div class='watch-action'><div class='watch-position align-right'><div class='action-like'><a class='lbg-style1 like-28065 jlk' href='javascript:void(0)' data-task='like' data-post_id='28065' data-nonce='65e0e39b87' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.graviton.at\/letterswaplibrary\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-28065 lc'>0<\/span><\/a><\/div><\/div> <div class='status-28065 status align-right'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Hi everyone, I&#8217;m currently taking a course on Python, and I&#8217;ve been learning web scraping with BeautifulSoup&#8230;<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-28065","post","type-post","status-publish","format-standard","hentry","category-datatards","wpcat-85-id"],"_links":{"self":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/28065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/comments?post=28065"}],"version-history":[{"count":0,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/28065\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/media?parent=28065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/categories?post=28065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/tags?post=28065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}