Find a logical way to write

 if response.xpath("//link[contains(@rel,"apple-touch-icon-precomposed")]/@href"):
                apple_touch_url = response.xpath("//link[contains(@rel,"apple-touch-icon-precomposed")]/@href").extract()
                apple_touch_url=[link for link in apple_touch_url if "https" in link or "http" in link ]
                item["logo"] = apple_touch_url
                if not apple_touch_url:



        elif response.xpath("//link[contains(@rel,"icon")]/@href"):
                rel_url=response.xpath("//link[contains(@rel,"icon")]/@href").extract()
                item["logo"]=rel_url
                print(rel_url)
        elif response.xpath("//link[contains(@rel,"shortcut icon")]/@href"):

            print("shortcut")
            shortcut_url=response.xpath("//link[contains(@rel,"shortcut icon")]/@href").extract()
            item["logo"]=shortcut_url
            print(shortcut_url)
        else:
           print("favicon")
           item["logo"]=response.url+"/favicon.ico"
Jan.08,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5f621-45827.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5f621-45827.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?