prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Fix walla scraping - see test_scrape_sanity_online_walla
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `anyway/parsers/rss_sites.py`
  Content:
  ```
  1 import requests
  2 from bs4 import BeautifulSoup
  3 import feedparser
  4 from anyway.parsers import timezones
  5 
  6 
  7 def parse_html_walla(item_rss, html_soup):
  8     # For some reason there's html here
  9     description = BeautifulSoup(item_rss["summary"], features="lxml").text
  10 
  11     author = html_soup.find("div", class_="author").find("a").get_text()
  12     return author, description
  13 
  14 
  15 def parse_html_ynet(item_rss, html_soup):
  16     # This is rather fragile
  17     # description_text: "[description] ([author]) [unrelated stuff]"
  18     description_text = html_soup.find(id="ArticleBodyComponent").get_text()
  19     author = description_text.split("(")[-1].split(")")[0].strip()
  20     description = description_text.rsplit("(")[0].strip()
  21     return author, description
  22 
  23 
  24 sites_config = {
  25     "ynet": {
  26         "rss": "https://www.ynet.co.il:443/Integration/StoryRss1854.xml",
  27         "parser": parse_html_ynet,
  28     },
  29     "walla": {"rss": "https://rss.walla.co.il:443/feed/22", "parser": parse_html_walla},
  30 }
  31 
  32 
  33 def _fetch(url: str) -> str:
  34     return requests.get(url).text
  35 
  36 
  37 def scrape_raw(site_name: str, *, rss_source=None, fetch_html=_fetch):
  38     config = sites_config[site_name]
  39     if rss_source is None:
  40         rss_source = config["rss"]
  41     rss_dict = feedparser.parse(rss_source)
  42     if rss_dict.get("bozo_exception"):
  43         raise rss_dict["bozo_exception"]
  44 
  45     for item_rss in rss_dict["items"]:
  46         html_text = fetch_html(item_rss["link"])
  47         author, description = config["parser"](item_rss, BeautifulSoup(html_text, "lxml"))
  48         yield {
  49             "link": item_rss["link"],
  50             "date": timezones.from_rss(item_rss["published_parsed"]),
  51             "source": site_name,
  52             "author": author,
  53             "title": item_rss["title"],
  54             "description": description,
  55             "accident": False,
  56         }
  57 
  58 
  59 def scrape(*args, **kwargs):
  60     # lazily load dependencies, so this module will behave like an independent library
  61     from anyway.models import NewsFlash
  62 
  63     for dict_item in scrape_raw(*args, **kwargs):
  64         yield NewsFlash(**dict_item)
  65
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/anyway/parsers/rss_sites.py b/anyway/parsers/rss_sites.py
  --- a/anyway/parsers/rss_sites.py
  +++ b/anyway/parsers/rss_sites.py
  @@ -8,7 +8,7 @@
       # For some reason there's html here
       description = BeautifulSoup(item_rss["summary"], features="lxml").text
   
  -    author = html_soup.find("div", class_="author").find("a").get_text()
  +    author = html_soup.find("div", class_="author").get_text().strip()
       return author, description
  
verification_info: {"golden_diff": "diff --git a/anyway/parsers/rss_sites.py b/anyway/parsers/rss_sites.py\n--- a/anyway/parsers/rss_sites.py\n+++ b/anyway/parsers/rss_sites.py\n@@ -8,7 +8,7 @@\n     # For some reason there's html here\n     description = BeautifulSoup(item_rss[\"summary\"], features=\"lxml\").text\n \n-    author = html_soup.find(\"div\", class_=\"author\").find(\"a\").get_text()\n+    author = html_soup.find(\"div\", class_=\"author\").get_text().strip()\n     return author, description\n", "issue": "Fix walla scraping - see test_scrape_sanity_online_walla\n\n", "before_files": [{"content": "import requests\nfrom bs4 import BeautifulSoup\nimport feedparser\nfrom anyway.parsers import timezones\n\n\ndef parse_html_walla(item_rss, html_soup):\n    # For some reason there's html here\n    description = BeautifulSoup(item_rss[\"summary\"], features=\"lxml\").text\n\n    author = html_soup.find(\"div\", class_=\"author\").find(\"a\").get_text()\n    return author, description\n\n\ndef parse_html_ynet(item_rss, html_soup):\n    # This is rather fragile\n    # description_text: \"[description] ([author]) [unrelated stuff]\"\n    description_text = html_soup.find(id=\"ArticleBodyComponent\").get_text()\n    author = description_text.split(\"(\")[-1].split(\")\")[0].strip()\n    description = description_text.rsplit(\"(\")[0].strip()\n    return author, description\n\n\nsites_config = {\n    \"ynet\": {\n        \"rss\": \"https://www.ynet.co.il:443/Integration/StoryRss1854.xml\",\n        \"parser\": parse_html_ynet,\n    },\n    \"walla\": {\"rss\": \"https://rss.walla.co.il:443/feed/22\", \"parser\": parse_html_walla},\n}\n\n\ndef _fetch(url: str) -> str:\n    return requests.get(url).text\n\n\ndef scrape_raw(site_name: str, *, rss_source=None, fetch_html=_fetch):\n    config = sites_config[site_name]\n    if rss_source is None:\n        rss_source = config[\"rss\"]\n    rss_dict = feedparser.parse(rss_source)\n    if rss_dict.get(\"bozo_exception\"):\n        raise rss_dict[\"bozo_exception\"]\n\n    for item_rss in rss_dict[\"items\"]:\n        html_text = fetch_html(item_rss[\"link\"])\n        author, description = config[\"parser\"](item_rss, BeautifulSoup(html_text, \"lxml\"))\n        yield {\n            \"link\": item_rss[\"link\"],\n            \"date\": timezones.from_rss(item_rss[\"published_parsed\"]),\n            \"source\": site_name,\n            \"author\": author,\n            \"title\": item_rss[\"title\"],\n            \"description\": description,\n            \"accident\": False,\n        }\n\n\ndef scrape(*args, **kwargs):\n    # lazily load dependencies, so this module will behave like an independent library\n    from anyway.models import NewsFlash\n\n    for dict_item in scrape_raw(*args, **kwargs):\n        yield NewsFlash(**dict_item)\n", "path": "anyway/parsers/rss_sites.py"}], "after_files": [{"content": "import requests\nfrom bs4 import BeautifulSoup\nimport feedparser\nfrom anyway.parsers import timezones\n\n\ndef parse_html_walla(item_rss, html_soup):\n    # For some reason there's html here\n    description = BeautifulSoup(item_rss[\"summary\"], features=\"lxml\").text\n\n    author = html_soup.find(\"div\", class_=\"author\").get_text().strip()\n    return author, description\n\n\ndef parse_html_ynet(item_rss, html_soup):\n    # This is rather fragile\n    # description_text: \"[description] ([author]) [unrelated stuff]\"\n    description_text = html_soup.find(id=\"ArticleBodyComponent\").get_text()\n    author = description_text.split(\"(\")[-1].split(\")\")[0].strip()\n    description = description_text.rsplit(\"(\")[0].strip()\n    return author, description\n\n\nsites_config = {\n    \"ynet\": {\n        \"rss\": \"https://www.ynet.co.il:443/Integration/StoryRss1854.xml\",\n        \"parser\": parse_html_ynet,\n    },\n    \"walla\": {\"rss\": \"https://rss.walla.co.il:443/feed/22\", \"parser\": parse_html_walla},\n}\n\n\ndef _fetch(url: str) -> str:\n    return requests.get(url).text\n\n\ndef scrape_raw(site_name: str, *, rss_source=None, fetch_html=_fetch):\n    config = sites_config[site_name]\n    if rss_source is None:\n        rss_source = config[\"rss\"]\n    rss_dict = feedparser.parse(rss_source)\n    if rss_dict.get(\"bozo_exception\"):\n        raise rss_dict[\"bozo_exception\"]\n\n    for item_rss in rss_dict[\"items\"]:\n        html_text = fetch_html(item_rss[\"link\"])\n        author, description = config[\"parser\"](item_rss, BeautifulSoup(html_text, \"lxml\"))\n        yield {\n            \"link\": item_rss[\"link\"],\n            \"date\": timezones.from_rss(item_rss[\"published_parsed\"]),\n            \"source\": site_name,\n            \"author\": author,\n            \"title\": item_rss[\"title\"],\n            \"description\": description,\n            \"accident\": False,\n        }\n\n\ndef scrape(*args, **kwargs):\n    # lazily load dependencies, so this module will behave like an independent library\n    from anyway.models import NewsFlash\n\n    for dict_item in scrape_raw(*args, **kwargs):\n        yield NewsFlash(**dict_item)\n", "path": "anyway/parsers/rss_sites.py"}]}