semvec/pypi-packages huggingface dataset:
lurk 0.1.3
Extract html from one or multiple urls
License: MIT
Keywords: lurk lurker scrape scraper scraping webscrape crawl crawler crawling

lurk
====

A script which extracts HTML from web pages that match a certain CSS pattern.
::

    $ pip install lurk

=====
usage
=====

**in python**

In python, lurk returns a dictionary:

::

    from lurk import lurk

    for link in lurk('http://en.wikipedia.org/wiki/en', 'a'):
        if 'href' in link:
            print link['href']

**in bash**

In bash, lurk returns JSON.

Familiarize yourself with `CSS attribute selectors <https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors>`_.

::

    $ lurk \
    http://www.gnu.org/software/libc/manual/html_node/Function-Index.html \
    'a[href*="#index-"]' \
    > links.json

This command saves a JSON object containing an array of links to all GNU C functions into **links.json**:

::

    [
      {
        "code": "*pthread_getspecific",
        "href": "Thread_002dspecific-Data.html#index-_002apthread_005fgetspecific"
      },

      {
        "code": "*sbrk",
        "href": "Resizing-the-Data-Segment.html#index-_002asbrk"
      },

      // ...
    ]
pyjavaproperties-unicode 0.1.1
A small wrapper around pyjavaproperties to add unicode support.
License: MIT

This is a tiny wrapper around the pyjavaproperties package that does
unicode en- and decoding transparently.

The problem I tried to solve here is that Java Properties files only
support ISO-8859-1 content. If you need unicode, you have to use
something like `native2ascii`_ or `propedit`_ for Eclipse which
converts content from unicode to ascii and stores it into the 
respective file. In Python, obviously, you want the actual unicode
data and not the encoded version of the prop value and this is
exactly what this here does.

To use it simply import the ``Properties`` class from the
``pyjavapropertiesu`` module instead of ``pyjavaproperties`` and use
the ``getProperty`` method as before.

Please note, though, that the data within the internal dict in the Properties
class is still encoded.

.. _`native2ascii`: http://docs.oracle.com/javase/7/docs/technotes/tools/windows/native2ascii.html
.. _`propedit`: http://propedit.sourceforge.jp/index_en.html
hardlink 0.2
Copy files and merge directories using hard links.
License: MIT

Overview
========

This package provides a ``hardlink`` module and command line script that copies
files and merges directories using hard links.

Why? Because OS X doesn't support ``cp -lR``.

Installation
============

Latest code direct from the repository::

    $ pip install hardlink

Usage
=====

Via the command line script::

    $ hardlink -h
    usage: hardlink [-h] [-d] [-f] [-q | -v] src dst

    Copy files and merge directories using hard links.

    positional arguments:
      src            Source file or directory. Follow symbolic links.
      dst            Destination file or directory. Merge existing directories.

    optional arguments:
      -h, --help     show this help message and exit
      -d, --dry-run  Do not link files or create directories. Only log operations.
      -f, --force    Replace existing files and symbolic links.
      -q, --quiet    Silence standard output.
      -v, --verbose  Increase verbosity for each occurrence.

Via the module::

    import hardlink
    link = hardlink.Command(dry_run=False, force=True)
    link(src, dst)
moltin 1.0.1b1
Moltin Python SDK
License: MIT
Keywords: ecommerce api sdk

Python SDK
==========

[Website] (http://molt.in)

License: MIT

Version: 1.0

Description
-----------

Python SDK for the Moltin eCommerce API

Installation
------------

::

    $ pip install moltin

Usage
-----

Initialise the Moltin object with your ``client_id`` and
``client_secret``, and optionally a specific API version (e.g. ``v1``).

.. code:: python

        from moltin.moltin import Moltin
        
        m = Moltin("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET"[, version="v1"])

Authentication
~~~~~~~~~~~~~~

To Authenticate, call the authenticate method.

.. code:: python

        access_token = m.authenticate()
        # This returns an AccessToken object
        # access_token.token: the token string
        # access_token.has_expired(): has the token expired
        #
        # The access token is automatically passed to subsequent requests, 
        # so you shouldn't normally need to use the returned token
        # except when persisting in a session or db

Authenticating with a username/password:

.. code:: python

        access_token, refresh_token = m.authenticate(username="your_username", password="your_password")
        # refresh_token is a RefreshToken object.
        # refresh_token.token: the token string
        # Use this to re-authenticate without needing a user/pass

Authenticating with a refresh\_token string:

.. code:: python

        access_token = m.authenticate(refresh_token="refresh_token_string")

Once authenticated, the access token is automatically passed to every
request. If you need to pass in a previously stored token, use:

.. code:: python

    m.set_access_token("access_token_string")

before making a request

Making API Calls
~~~~~~~~~~~~~~~~

There's an easy way to interact with most endpoints:

.. code:: python

    product = m.Product         # Creates a product wrapper
    product.list()              # lists all products
    product.create(params)      # creates a product, params passed as a dict
    product.find(5)             # finds product with id = 5
    product.find_by(params)     # finds a single product by params passed as a dict,
                                # e.g. {"title": "Banana"}
    product.update(5, params)   # updates product with id = 5 with new params
    product.remove(5)           # removes product with id = 5

The SDK also offers a way to make get, post, put and delete requests to
API endpoints directly

For example:

.. code:: python

    product = m.get('products/5')  # get product with id = 5 
    new_product = m.post('products', {
            "sku": "123456789",
            "title": "My first product",
            "slug": "my-first-product",
            "price": 9.99,
            "status": 1,
            "category": 2,
            "stock_level": 15,
            "stock_status": 6,
            "description": "This is my first product on Moltin",
            "requires_shipping": 0
    })  # create a new product
    m.put('products/5', params)  # update product with id = 5
    m.delete('products/5')  # delete product with id = 5

For more examples, see the full API docs.
ckanext-harvest_zh 0.3.2
An improved harvest package to collect Chinese language data sets for CKAN.
License: MIT
Keywords: ckan,Linked-data,harvest

An improved harvest package to collect Chinese language data sets for CKAN.

Documentation: https://github.com/dspim/ckanext-harvest-zh

This Project is fork from ckanext-harvest(https://github.com/ckan/ckanext-harvest). We add some harvesters for chinese users.