Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 python-abp | 1 python-abp |
2 ========== | 2 ========== |
3 | 3 |
4 This repository contains a library for working with Adblock Plus filter lists, | 4 This repository contains a library for working with Adblock Plus filter lists, |
5 a script for rendering diffs between filter lists, and the script that is used | 5 a script for rendering diffs between filter lists, and the script that is used |
6 for building Adblock Plus filter lists from the form in which they are authored | 6 for building Adblock Plus filter lists from the form in which they are authored |
7 into the format suitable for consumption by the adblocking software (aka | 7 into the format suitable for consumption by the adblocking software (aka |
8 rendering). | 8 rendering). |
9 | 9 |
10 .. contents:: | 10 .. contents:: |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 | 220 |
221 $ virtualenv venv | 221 $ virtualenv venv |
222 $ venv/bin/pip install --upgrade python-abp | 222 $ venv/bin/pip install --upgrade python-abp |
223 | 223 |
224 | 224 |
225 Then import it with ``reticulate`` in R: | 225 Then import it with ``reticulate`` in R: |
226 | 226 |
227 .. code-block:: R | 227 .. code-block:: R |
228 | 228 |
229 > library(reticulate) | 229 > library(reticulate) |
230 > use_virtualenv("~/python-abp/env", required=TRUE) | 230 > use_virtualenv("~/python-abp/env", required=TRUE) # If using virtualenv |
Vasily Kuznetsov
2019/01/28 16:26:34
Maybe we should add a comment (like # this kind of
rhowell
2019/01/29 00:35:47
Done.
| |
231 > abp <- import("abp.filters.rpy") | 231 > abp <- import("abp.filters.rpy") |
232 | 232 |
233 Now you can use the functions with ``abp$functionname``, e.g. | 233 Now you can use the functions with ``abp$functionname``, e.g. |
234 ``abp.line2dict("@@||g.doubleclick.net/pagead/$subdocument,domain=hon30.org")``. | 234 ``abp.line2dict("@@||g.doubleclick.net/pagead/$subdocument,domain=hon30.org")``. |
LEFT | RIGHT |