csv[["URL"]].apply(lambda x: indexURL(x, http))
File "C:UsersAdministratorAppDataLocalPackagesPythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0LocalCachelocal-packagesPython312site-packagespandascoreframe.py", line 10374, in apply
return op.apply().__finalize__(self, method="apply")
^^^^^^^^^^
File "C:UsersAdministratorAppDataLocalPackagesPythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0LocalCachelocal-packagesPython312site-packagespandascoreapply.py", line 916, in apply
return self.apply_standard()
^^^^^^^^^^^^^^^^^^^^^
File "C:UsersAdministratorAppDataLocalPackagesPythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0LocalCachelocal-packagesPython312site-packagespandascoreapply.py", line 1063, in apply_standard
results, res_index = self.apply_series_generator()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersAdministratorAppDataLocalPackagesPythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0LocalCachelocal-packagesPython312site-packagespandascoreapply.py", line 1081, in apply_series_generator
results[i] = self.func(v, *self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersAdministratorDesktopIndexing API - Quanrioindexing.py", line 46, in <lambda>
csv[["URL"]].apply(lambda x: indexURL(x, http))
^^^^^^^^^^^^^^^^^
File "C:UsersAdministratorDesktopIndexing API - Quanrioindexing.py", line 37, in indexURL
print("urlNotificationMetadata.latestUpdate.url: {}".format(result["urlNotificationMetadata"]["latestUpdate"]["url"]))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'latestUpdate'
How to Solve this Please Anyone can Help me?
New contributor
Ahmed raza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
4