Get the details of an extension from
marketplace.visualstudio.com
.Details are:
- Extension title:
title: STRING
- Extension publisher name:
publisher_name: STRING
- Extension main image/logo:
default_image: URL
- Number of installs:
installs: INTEGER
All you need is the extension ID eg:
muremwa.read-urls
The extension ID is called the 'Unique Identifier'.
You can install using pip.
pip install marketplace-scrapper
Import the main function.
import vscrap
details = vscrap.get_extension_details('muremwa.read-urls')
The main function returns a dict with the details as described above.
{
'title': 'django-read-urls',
'publisher_name': 'muremwa',
'default_image': 'https://cdn./*',
'installs': 1010
}
Use the scrap.extension
module and add one argument, the extension ID.
python -m scrap.extension muremwa.read-urls