Anteckningar
- Node.js ≥16, npm 8
npm init vue@latest
- Välj No på allt
cd <projektnamn>
import xml.etree.ElementTree as ET | |
# Get saldo.xml at https://spraakbanken.gu.se/resurser/saldo | |
tree = ET.parse('saldo.xml') | |
root = tree.getroot() | |
words = set() | |
chars = set() | |
for fr in root.findall(".//FormRepresentation"): | |
pos_el = fr.find("./feat[@att='partOfSpeech']") |
import requests | |
from lxml.cssselect import CSSSelector | |
from lxml.html import fromstring | |
SITE = 'https://www.svenskaplatser.se/' | |
def links(url, selector): | |
html = requests.get(SITE + url).content.decode() | |
tree = fromstring(html) | |
sel = CSSSelector(selector) |
<?php | |
/** | |
* @file | |
* Contains \Drupal\mymodule\Feeds\Target\EntityReferenceDefaultValue. | |
*/ | |
namespace Drupal\mymodule\Feeds\Target; | |
use Drupal\Core\Form\FormStateInterface; | |
use Drupal\feeds\Exception\EmptyFeedException; |
array(25) { | |
'#attributes' => | |
array(1) { | |
'class' => | |
array(2) { | |
[0] => | |
string(23) "collect-processing-form" | |
[1] => | |
string(19) "collect-schema-form" | |
} |
a:25:{s:11:"#attributes";a:1:{s:5:"class";a:2:{i:0;s:23:"collect-processing-form";i:1;s:19:"collect-schema-form";}}s:8:"#process";a:1:{i:0;s:13:"::processForm";}s:12:"#after_build";a:1:{i:0;s:12:"::afterBuild";}s:20:"processor_add_select";a:3:{s:5:"#type";s:6:"select";s:6:"#title";s:13:"Add processor";s:8:"#options";a:2:{s:16:"activity_creator";O:48:"Drupal\Core\StringTranslation\TranslationWrapper":3:{s:9:" |