title: TypeError: XXXXX got an unexpected keyword argument 'XXXXXX'
body: <p>I'm getting an unexpected keyword argument from running a code. Source : <a href="https://sempioneer.com/python-for-seo/how-to-extract-text-from-multiple-webpages-in-python/" rel="nofollow noreferrer">https://sempioneer.com/python-for-seo/how-to-extract-text-from-multiple-webpages-in-python/</a>
  Anybody can help ? thanks</p>
  <p>running below code :</p>
  <pre><code>single_url = 'https://understandingdata.com/'
  text = extract_text_from_single_web_page(url=single_url)
  print(text)
  </code></pre>
  <p>gives below error :</p>
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  ~\AppData\Local\Temp/ipykernel_10260/3606377172.py in &lt;module&gt;
        1 single_url = 'https://understandingdata.com/'
  ----&gt; 2 text = extract_text_from_single_web_page(url=single_url)
        3 print(text)
  
  ~\AppData\Local\Temp/ipykernel_10260/850098094.py in extract_text_from_single_web_page(url)
       42     try:
       43         a = trafilatura.extract(downloaded_url, json_output=True, with_metadata=True, include_comments = False,
  ---&gt; 44                             date_extraction_params={'extensive_search': True, 'original_date': True})
       45     except AttributeError:
       46         a = trafilatura.extract(downloaded_url, json_output=True, with_metadata=True,
  
  TypeError: extract() got an unexpected keyword argument 'json_output'
  </code></pre>
  <p>the code for &quot;extract_text_from_single_web_page(url=single_url)</p>
  <pre><code>def extract_text_from_single_web_page(url):
      
      downloaded_url = trafilatura.fetch_url(url)
      try:
          a = trafilatura.extract(downloaded_url, json_output=True, with_metadata=True, include_comments = False,
                              date_extraction_params={'extensive_search': True, 'original_date': True})
      except AttributeError:
          a = trafilatura.extract(downloaded_url, json_output=True, with_metadata=True,
                              date_extraction_params={'extensive_search': True, 'original_date': True})
      if a:
          json_output = json.loads(a)
          return json_output['text']
      else:
          try:
              resp = requests.get(url)
              # We will only extract the text from successful requests:
              if resp.status_code == 200:
                  return beautifulsoup_extract_text_fallback(resp.content)
              else:
                  # This line will handle for any failures in both the Trafilature and BeautifulSoup4 functions:
                  return np.nan
          # Handling for any URLs that don't have the correct protocol
          except MissingSchema:
              return np.nan
  </code></pre>