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).

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Parsing a pdf without a strong structure

I want to extract data from a pdf with python, but I cannot solve the parsing problems. The pdf is quite regular, but the result of the script is not good because: some rows are read together it does ...
Francesco's user avatar
0 votes
0 answers
15 views

pugixml intergration in visual studio code

am trying to read an xml file in visual studio using the pugixml parser. i have downloaded the parser. but am wondering how i can link it with my c++ code. like how to configure the include ...
Elijah Eisenman's user avatar
-2 votes
0 answers
24 views

Convert a comma separated string of fields to a GraphQL query syntax

I have a requiremenet where I need to parse a user input comma separated string, and generate a graphql query out of it. INPUT: queryPath fieldA.fieldB, fieldA.fieldC, fieldA.fieldD.fieldE, fieldA....
Ahmad Shaikh's user avatar
0 votes
0 answers
40 views

Derive conditions for each variable assignment from pseudocode

I have some pseudocode that is in the form: patch a: if b == "foo1" then a = "No" if c == "foo2" then if d == "foo3" || d == "foo4&...
mohammed ali's user avatar
0 votes
1 answer
46 views

How to identify the list of unique variable names that are parsed from text file using batch script

Thanks to @Magoo for helping me write the script to parse the text file. Reference here: https://stackoverflow.com/a/77561672/4180447 I have the following text file with array values and key values: ; ...
tarekahf's user avatar
  • 796
0 votes
0 answers
20 views

Postgres - Map an ID to all objects within XML class

My question is quite similar to this: Read XML attributes in postgres, though I want each ID value mapped/bound to all of the dependable objects. I tried to build my code based on the solution from ...
HardRock4Life's user avatar
3 votes
0 answers
69 views

How to push a synthetic token (which is not related to any symbol) in Menhir Incremental?

I am parsing the Elm lang-like syntax. And look at the pattern matching (inside pattern matching) case a of 1 -> case b of "hello" -> 'h' _ -> 'w' _ -> 'e' We see there is ...
Bleg Bleg's user avatar
  • 395
0 votes
0 answers
35 views

How can I import a single column of data into Excel from tab-delimited text file?

Each of my tab delimited text files has 1 column of data I want (well 2, but baby steps). I want to select the file to import, have that 1 column of data paste into my spreadsheet (into the cell I ...
Nick's user avatar
  • 61
0 votes
1 answer
61 views

Using the parser combinator crate "nom" to partially read and parse a file

I have a usecase where I only want to parse the beginning of a file to to the point where I decide to stop parsing. This can be 4kB or more. The exact amount is not known. So there is no need to read ...
Frank Schwidom's user avatar
0 votes
2 answers
42 views

How to parse text file to load arrays in batch script

If I have this text file keys.txt: key1=val 1 key2=val 2 key3=val 3 I can use this script to load this script to load the values: @echo off setlocal for /f "usebackq tokens=1* delims==" %%...
tarekahf's user avatar
  • 796
1 vote
2 answers
44 views

Python - Parsing / extracting sections using Python

was hoping someone could give me some suggestions. So, I have a large HTML document. I need to extract data between 2 tags. It's a dynamic document, so it can be different each time/ But there ...
Landon Statis's user avatar
0 votes
1 answer
38 views

tokenizer and parser returns wrong answer for a postfix notation

I have coded a tokenizer and a recursive parser for a postfix expression. My code is the following: import re token_patterns = [ ('OPERATOR', r'[+\-*/]'), ('NUMBER', r'\d+'), ('WHITESPACE'...
Little's user avatar
  • 3,393
-2 votes
0 answers
26 views

Running scrapy spider from FastAPI [closed]

I want to be able to run scrapy spider over a FastAPI endpoint, however I have not found anything similar to my case in the scrapy documentation. I need to be able to retrieve items collected after it ...
revolex's user avatar
0 votes
0 answers
8 views

Warnung: parse_ini_file(sprachen/de-DE/Language.info.ini) [function.parse-ini-file]:

Habe diesen Fehler Warnung: parse_ini_file(sprachen/de-DE/Language.info.ini) [function.parse-ini-file]: Fehler beim Öffnen des Streams: Keine solche Datei oder kein solches Verzeichnis in dieser Reihe ...
Samaro's user avatar
  • 1
-6 votes
0 answers
42 views

Getting incorrect integer value issue [closed]

I have a class for reading values from SQLite databases, all kinds of values are read correctly, but if the value is integer = 1, when reading it gets 0. If the value is greater than one - everything ...
Danny's user avatar
  • 1
0 votes
0 answers
18 views

3 bison shift/reduce conflicts

I am getting 3 shift/reduce conflicts for this code. Here is my code: %{ #define YYDEBUG 1 #include <stdio.h> int yylex(); extern int yylineno; extern int yyerror (const char *); %} %debug %...
glory's user avatar
  • 1
1 vote
2 answers
46 views

TatSu: square brackets are being ignored in the grammar

TatSu tends to ignore the square bracket characters, be it [, ], and the mix of two at times and recognize them at different times for some reason, which I will show in an example below I'm ...
ISE's user avatar
  • 448
0 votes
0 answers
27 views

Unable to Parse the Json file using Open Json in SQL

I've a JSON file content and I want read the content using Open JSON and load it into the SQL. need help in loading the content to SQl. { "Header": { "Time": "2023-...
Surya Vanamoju's user avatar
0 votes
1 answer
29 views

Getting data from an XML document using DOM in Java

I'm trying to parse an XML file using DOM, but at the end only the last entry is output several times (in a loop). Tell me, please, what is the problem? (I'm a beginner in Java) XML with approximately ...
Илья Величко's user avatar
-1 votes
0 answers
46 views

How do i load and add passwords correctly in my haskell programm

I`m trying to create a simple Password manager in Haskell. I´m trying to save the files in a txt file in another document named passwords. You can add 1 Password to the file but then you cant add ...
G Dawg's user avatar
  • 11
0 votes
2 answers
50 views

How to feed parameters from a file to bash script

Using multiple receivers to monitor HFDL traffic I'd like to create a start script for each of my receivers. The dumphfdl tool needs quite a few parameters. Besides specific parameters, the ...
Faramir's user avatar
  • 11
1 vote
0 answers
37 views

Unexpected parsing behavior in fastparse when composing parsers programmatically

I'm trying to build a simple parser using fastparse which succeeds when the given input is one of the words defined in a given list. Concretely this is what my code looks like: val words = List("...
dogengineer's user avatar
0 votes
1 answer
27 views

Nextjs / React parse text to html format

For a specific project I use next js and react. I have the idea to create my own component to parse text with specific condition, but I don't know if something like this already exist. What i try to ...
5im0n's user avatar
  • 1
0 votes
0 answers
37 views

invalid char between encapsulated token and delimiter csv Parsing [closed]

CSV Parsing error with below code... CSVFormat format = CSVFormat.RFC4180 .withHeader() .withDelimiter(',') .withQuote('"') .withEscape('\\') .withSkipHeaderRecord(true); ...
Vishvajeet w's user avatar
0 votes
0 answers
26 views

How can i get XML tag value? [duplicate]

<?xml version="1.0"?> <root xmlns="urn:schemas-upnp-org:device-1-0"> <specVersion> <major>1</major> <minor>0</minor> ...
rv_5143's user avatar
  • 39
0 votes
2 answers
60 views

Cannot get XML string by URL

I need to get a string from an external xml by URL. Code: var client = new WebClient(); string response = client.DownloadString("http://www.tcmb.gov.tr/kurlar/today.xml"); But instead I get ...
maximbtw's user avatar
-1 votes
0 answers
19 views

How to parse Finvoice soap envelope [closed]

I need to parse finvoice SOAP envelopes to csv. They are some sort of XML and there seems to be python module py-finvoice to parse them ( https://github.com/codemasteroy/py-finvoice). I am new to this ...
JaniH's user avatar
  • 37
0 votes
1 answer
21 views

Python request and parse xml from url

I am trying to download some files from a data source through their API. I am stuck on parsing the string and can not figure out how to parse it. I believe it is xml formatted but all my usual ...
David's user avatar
  • 11
-1 votes
1 answer
56 views

How to solve shift/reduce, reduce/reduce confliction in lua parser's grammer

I am trying to write a lua parser by happy. My Parser.y's grammer comes from https://www.lua.org/manual/5.4/manual.html#9 as follow { module Parser where import Lexer } %name parse %tokentype { Token ...
zichao liu's user avatar
1 vote
0 answers
39 views

Neovim LSP Not working after not using for a few months. (LSP Zero)

I haven't used NeoVim in quite a while so excuse my poor explanation, but essentially my autocomplete A.K.A LSP No longer works. I use LSP Zero and a custom completions config that has worked for me ...
bradys dev's user avatar
0 votes
1 answer
36 views

Whois parser doesn't show some details for co and dev domains

I am trying to use the ruby whois gem but the whois-parser gem doesn't seem to work for .dev i.e for these I get Whois::AttributeNotImplemented errors and doesn't return some details like the expiry ...
Wasswa Samuel's user avatar
1 vote
4 answers
49 views

Python - Parsing CSV to join multiple row with subbalances_ids to one

Hey I'm having some issues with parsing the CSV in python using Pandas. My file has such structure: user_id, user_main_account_id, user_subbalance_id abc1,uuid1,toJoin1 abc1,uuid1,toJoin2 abc2,uuid2,...
Instalockboomer's user avatar
-1 votes
0 answers
14 views

Can I PHPLATEX and PARSEDOWN parsers at the same time?

Basically I have a PHP file which would fetch a markdown file from the server directory, it obtains the contents of the file: fetch(`./uploads/${cleanFileUrl}`) .then(response =...
Alessio Liu's user avatar
0 votes
1 answer
74 views

String.data(using: .utf8): What is the effect of having the argument specified?

From an video-tutorial, which I'm currently using for learning: let data = """ { "customers": [ { "firstname": "John", /...
cluster1's user avatar
  • 5,086
0 votes
0 answers
22 views

Ssue with displaying data from the website by means of parsing

I need help, I'm not very good at JS, and I decided to practice by writing my first bot for Telegram. The bot works without errors until I start making changes. My task was to display information from ...
Sunnex's user avatar
  • 1
0 votes
0 answers
16 views

Android - use Logan Square library to parse a JSON string

I stumbled upon this library while looking for a fast JSON parser in Android: https://github.com/bluelinelabs/LoganSquare However it was last updated 8 years ago and the gradle mentioned on the page ...
zuokuok's user avatar
  • 323
0 votes
0 answers
84 views

SessionNotCreatedException: session not created: Chrome failed to start: exited normally.(session not created: DevToolsActivePort file doesn't exist)

For one project I need to make a steam data parser. I found a ready-made code, but it was written about a year ago and a lot has changed during this time. Unfortunately, the code developer can't help ...
TheDarkArsenalWorld's user avatar
-2 votes
1 answer
55 views

ANTLR4 Visitor Method cannot find symbol Error in Java

I'm working with ANTLR4 in Java to create a custom language parser. I've generated my lexer and parser using a grammar file (CCAL.g4), and I'm implementing a visitor class (EvalVisitor) extending ...
Cian Sullivan's user avatar
0 votes
2 answers
93 views

How can I get many integers as variables from a String?

I want to make a code that validates a birthdate, I would like to make 3 different variables: Let's say the user writes down "12/6/1993". int DD = 12, int MM = 6, int YYYY = 1993. So I can ...
Daniel Mases's user avatar
-1 votes
0 answers
29 views

Not able to scan and parse a csv file contents into an associative array in System Verilog [duplicate]

I am trying to scan a csv file into a uvm sequence which has contents like the following: REG_1,0xab4556 REG_2,0x124d ... I have to scan these and assign them to an array into variable "Register ...
Pratheek Motamarri's user avatar
0 votes
1 answer
30 views

AngleSharp Parsing title="text"

There is this piece of HTML page code: <table cellspacing="0" id="work_outline"> <td> <div class="work_genre"> <a href="...
K14M's user avatar
  • 7
0 votes
0 answers
40 views

Creating a parser in C for DSL calculator

I tried to fix the error on line 137 of the code. As a result I get an exit code -1. And error: note: expected 'const char * const' but argument is of type 'int' 1917 | CJSON_PUBLIC(cJSON *) ...
6simple-person9's user avatar
0 votes
2 answers
41 views

How to parse an HTML table, into a portable data-set; DSV, JSON, etc

To preface, I plan on answering this question as well. Feel free to provide an answer; as there is not a single solution. I'd like to capture all the data from an HTML table, and place it into a data-...
Reilas's user avatar
  • 1
1 vote
1 answer
45 views

LocalDate.parse fails for DateTimeFormatter with multiple patterns

You can create a DateTimeFormatter with multiple patterns using the DateTimeFormatterBuilder, but LocalDate.parse doesn't seem to like it. It works with a single pattern and fails with mutliple ones. ...
t3chb0t's user avatar
  • 16.8k
1 vote
1 answer
70 views

Transforming a parenthesized string of numbers to a tree

I am developing a function to transform a parenthesized string of numbers to a tree. So, for example, treeFromString "((1)((3)(4)))" == Right (Nd (Lf 1) (Nd (Lf 3) (Lf 4))) This is my ...
F. Zer's user avatar
  • 1,113
-3 votes
0 answers
19 views

nested json json array to parse out [duplicate]

I need to get specific value from nested json ("main":Clouds) using json simple library. but its seems like nestedjson with nested jsonarray and i found very difficult to parse out some ...
cyriac effanga's user avatar
-2 votes
1 answer
54 views

Problem extracting text from h1 tag Beautiful Soup

I'm a complete newbie to parsing websites but I've had a script that pulls the figures of different housing sites which worked flawlessly for the past year. However, for a reason I can't figure out, ...
DCUpro's user avatar
  • 17
0 votes
0 answers
18 views

I'm trying to parse past earnings data in tradingview pine code

I'm trying to parse past earnings data in tradingview pine code, but I don't think there's a way to do this? Please help me if there is a possible solution. Thanks. Here's a working private script ...
options360's user avatar
3 votes
2 answers
109 views

Extract the first 2 fields from a CSV file (may contain commas or quotes) [duplicate]

I have a CSV file with 3 or more fields, and I want to extract the first 2 fields as they are, and save them to a new file. Notice that the fields may be quoted or not, and may contain commas or ...
Uri's user avatar
  • 3,132
0 votes
0 answers
17 views

Strapi throw "Parse Error Request Aborted"

Hello, once inn a while, i get the Error on the picture below. People uploading image and sometimes this trow this error Im using Strapi and AWS S3, i check my request, send the correct type of data, ...
Tyron's user avatar
  • 1,299

1
2 3 4 5
1148