Skip to content

Instantly share code, notes, and snippets.

View slotix's full-sized avatar
🕷️
Working from home

Dmitry Narizhnykh slotix

🕷️
Working from home
View GitHub Profile
Goal CSS 3 XPath
All Elements * //*
All P Elements p //p
All Child Elements p>* //p/*
Element By ID #foo //*[@id=’foo’]
Element By Class .foo //*[contains(@class,’foo’)]
Element With Attribute *[title] //*[@title]
First Child of All P p>*:first-child //p/*[0]
All P with an A child Not possible //p[a]
Next Element p + * //p/following-sibling::*[0]
@slotix
slotix / covid-19.json
Last active April 10, 2020 10:03
COVID-19 information payload for Dataflow Kit
{
"name":"COVID-19",
"request":{
"url":"https://www.worldometers.info/coronavirus/",
"actions":[
],
"type":"chrome"
},
"commonParent":"tr[role]",
@slotix
slotix / gist:7a58740502f2e692a19d2ff286b82391
Created February 24, 2021 16:28
DBConvert studio Dockerfile
FROM mcr.microsoft.com/windows/servercore/insider:10.0.18362.1
RUN echo "Downloading dbconvert studio"
ADD https://dbconvert.com/downloads/dbconvert_studio.zip /
COPY DBConvert-Studio.reg /
RUN powershell -Command "Write-Host 'Expanding dbconvert archive'; \
Expand-Archive dbconvert_studio.zip; \
Write-Host 'Installing dbconvert'; \
Start-Process msiexec -ArgumentList '/i', 'C:\dbconvert_studio\dbconvert_studio_x64\DbConvertStudioSetup_x64.msi', '/quiet', '/norestart' -NoNewWindow -Wait; \
Start-Process reg import DBConvert-Studio.reg; \
@slotix
slotix / gmaps-scraper.json
Created April 19, 2021 21:19
DFK Payload for extracting single place data from google maps.
{
"fields": [
{
"attrs": [
"text"
],
"filters": [
{
"name": "trim",
"param": ""