Skip to content

Latest commit

 

History

History
63 lines (40 loc) · 1.27 KB

README.rst

File metadata and controls

63 lines (40 loc) · 1.27 KB

Visual Studio Marketplace Scrapper.

Get the details of an extension from marketplace.visualstudio.com.
Details are:
  1. Extension title: title: STRING
  2. Extension publisher name: publisher_name: STRING
  3. Extension main image/logo: default_image: URL
  4. Number of installs: installs: INTEGER
All you need is the extension ID eg: muremwa.read-urls
The extension ID is called the 'Unique Identifier'.

Installation

You can install using pip.

pip install marketplace-scrapper

Usage

In python code.

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
}
Looks like this in python

In command line

Use the scrap.extension module and add one argument, the extension ID.

python -m scrap.extension muremwa.read-urls
Looks like this in commandline