code: def fetchAndParse(url, data=None):
      from urllib.parse import urljoin
  
      import bs4  # noqa
      import requests
  
      links = []
      r = requests.get(url, data=data)
      r.raise_for_status()
      if "text/html" in r.headers.get("content-type"):
          doc = bs4.BeautifulSoup(r.text, "html.parser")
          for node in doc.findAll("a"):
              href = node.get("href", None)
              if href:
                  links.append(urljoin(url, href))
      return links
  
file_path: ipyparallel/docs/source/examples/fetchparse.py
imports: import sys
  import time
  import bs4
  import ipyparallel
label_desc: Use image node_id 1 for calling a global function with example usage: fetchAndParse(url, data) and returns: links