<div>
<span class="apple1evil">123</span>
<span class="apple!evil">456</span>
<span class="appleCevil">789</span>
<span class="appleRevil">000</span>
</div>
//div/span[@class[starts-with(.,'apple')][substring(.,string-length()-3)='evil']]
//td[@class="official"]/p/a/text()
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.entrypoints=http"
- "traefik.http.routers.traefik.rule=Host(`tf.domain.com`)"
- "traefik.http.middlewares.auth.basicauth.users=login:hashed_password"
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.traefik.middlewares=auth,traefik-https-redirect"
- "traefik.http.routers.traefik-https.entrypoints=https"
- "traefik.http.routers.traefik-https.rule=Host(`tf.domain.com`)"
- "traefik.http.routers.traefik-https.tls=true"
- "traefik.http.routers.traefik-https.tls.certresolver=mytlschallenge"
- "traefik.http.routers.traefik-https.tls.domains[0].main=tf.domain.com"
- "traefik.http.routers.traefik-https.service=api@internal"
command:
// ..... другие директивы
- "--certificatesresolvers.mytlschallenge.acme.tlschallenge=true"
- "--certificatesresolvers.mytlschallenge.acme.email=youremail@domain.com"
- "--certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "./letsencrypt:/letsencrypt"
//div[@id="preloader"][contains(@style, "none")]
echo $content;
поможет.$el = $xPath->query('//title');
echo $el->item(0)->nodeValue;
$el = $xPath->query('//table[@class="table_class"]/tr[15]/td');
$button1 = array('text' => 'Кнопка 1', 'url' => 'https://.../');
$button2 = array('text' => 'Кнопка 2', 'url' => 'https://.../');
$button3 = array('text' => 'Кнопка 3', 'url' => 'https://.../');
$keyboard = array('inline_keyboard' => array(array($button1), array($button2, $button3)), 'one_time_keyboard' => true, 'resize_keyboard' => true);
получить значения атрибута name
//div[@class="reports"]/div[@class="SUCCESS"]/div[@class="name"]
//div[@class="reports"]/div[@class="ERROR"]/div[@class="author"]