show_data_id

swpy.swds.request.show_data_id(url)

Print the list of data IDs from the given URL and update the URL. The URL is updated by appending the name of the Data ID to it. When exit is entered, return 'None'. When undo is entered, return 'previous URL'. When Data ID is entered, return 'the updated URL'.

Parameters

  • url (str) – URL containing the data to be fetched.
  • Returns

  • str – Updated URL or Previous URL / None