Questions tagged [parsing]
Parsing refers to breaking an artifact into its constituent elements and capturing the relationship between those elements. This tag isn't for questions about the self hosted Parse Platform (use the [parse-platform] tag) or parse errors in a particular programming language (use the appropriate language tag instead).
parsing
57,630
questions
1
vote
0
answers
44
views
Decoding Google News Redirect URLs
I am currently working on a project that involves crawling news articles from Google News via RSS feeds. After gathering these news articles, my next task is to convert the provided Google News ...
1
vote
0
answers
13
views
Find unescaped line breaks from middle of RFC4180 CSV [closed]
I am writing parsing logic for an RFC4180 csv file.
I am wondering if it is possible to seek to an arbitrary position in the file, then scan either forwards or backwards to the nearest unescaped line ...
0
votes
1
answer
19
views
Multi-level listing bullet point "text" not showing in XML tree of Word Document's XML
I am trying to parse Word Documents using their XML; I am doing this through using Python's
xml.etree.ElementTree module. This is the code I used to create a plain .txt file output for a given Word ...
1
vote
1
answer
35
views
How to parse pdf in r and then correctly convert or extract spaced/tabbed pieces of text into columns of dataframe?
I am reading a pdf in r using library(pdftools)
library(tidyverse)
library(pdftools)
library(lubridate)
pdf_rowwise <- strsplit(pdf_text("V://path//sample.pdf"), split = "\n")
...
-8
votes
0
answers
41
views
Python. How to parse indented text to dicts?
I have this text from the log. How to convert it to a dictionary? The ultimate goal is that ITEMs that contain a date do not need to be converted (item[3,4]).
CodAnsw = 12
IdentAnsw = 1
Data:
...
2
votes
2
answers
40
views
PowerShell 7+ parse querystring-style strings into HashTable
I'm trying to avoid the apparent mess that is the .NET Core querystring parsing classes for now, yes.
For a given string: $data = 'id=1&name=neil&language=powershell'
I'd like to get a ...
-1
votes
0
answers
21
views
How to convert JSON Object to Javascript Object? [closed]
I need to Convert JSON Object to Javascript Object , I created a promise and returned the res
The output in browser is like
{
"students": [
{ "name": "Ahmed", &...
0
votes
1
answer
26
views
How to append inline element to its parent by parsing
I want to make markdown parser and some elements can't append. in parsing there is steps i have seen tokenizing => parsing => rendering.
My problem is how to to append child to parent in ...
0
votes
0
answers
39
views
Serde doesn't see untagged enum variant in input ("data did not match any variant of untagged ...") [duplicate]
Using Serde, I want to parse JSON data like this:
{
"data_type": "uint8",
"scales": [{
"encoding": "jpeg",
"key": "4.0x4....
0
votes
1
answer
28
views
Are Python class member functions argument type checked at parse time?
I'm not intending to change this in my implementation, it's to improve my understanding of porting this code:
In the extract from the track_holder.py module below, why does the TrackObject class have ...
0
votes
2
answers
23
views
Databricks Pyspark parse connection string
Is there an easy way to parse a connection string in this format?
HOST=HostName;Port=1234;ServiceName=Database;USer ID=User1;Password=Password123;
I need to parse out the host and port, database, ...
-2
votes
0
answers
35
views
How to force PHP to look at URL [closed]
Update: Alex in the comments below pointed to the source of the problem. Therefore, this question is answered, as far as I am concerned.
I have a page where I can choose a dropdown to modify the ...
4
votes
1
answer
100
views
Raku Actions Predicated on Parse Success?
Is there a way to configure Raku actions to only execute after a parse has completed successfully? For example, the program below outputs "Jane is telling us her age....", even with ...
0
votes
0
answers
16
views
prevent javaScript from parsing html [duplicate]
var text = "<script></script>";
var div = getElementById("wrap");
div.innerHTML = text;
how can I prevent JavaScript from parsing html tags? this code returns blank ...
-3
votes
2
answers
61
views
parse js string to python
I have a string with js code
[{label: ' ', name: 'Confirmed', width: 30, formatter: 'checkbox'},{label: 'ID', name: 'ID', width: 100, key:true},{label: 'E-mail', name: 'F250275', width: null,...