Category "parsing"

PHP: reading and parsing a nested JSON file

I want to use a json file as a kind of database. In it I have categorized file names and now I want to read them via PHP. { "settings": { "prefix": "pix", "

How to read from a file and parse it

I have a file .txt containing some values formatted like this: 0,30,25,10 Now, I open up the file and store it into an array char imposta_tratt[300]; FILE *f

Hello, I need some help to copy the content of one file to another except from some corrupted lines in tcl

I have a file with some thousands lines with the below format: 1.3.111.2.802.1.1.3.1.6.3.1.2.5.1.2 2 5

How to get everything after last slash in a URL?

How can I extract whatever follows the last slash in a URL in Python? For example, these URLs should return the following: URL: http://www.test.com/TEST1 retur

Parsing FtpWebRequest ListDirectoryDetails line

I need some help with parsing the response from ListDirectoryDetails in C#. I only need the following fields. File Name/Directory Name Date Created and the F

Locating all the tables on one spreadsheet using Excel VBA

I have a few spreadsheets with various tables in different formats. My task is to locate and identify anything on the spreadsheets that can be considered a tabl

Price won't show up in the html parsing

I'm trying to get the price of this object into a variable and print it out/put it in a CSV. This is the section of html that I am trying to parse: <span cla

How to parse XML files without knowledge of filename

I have a directory in which I receive orders as XML file. I want to parse this file and then do some things with it. I can set a scheduled job to check this dir

How do I parse a Playfab GetLeaderBoard request result?

I'm trying to work with the PlayFab JS API to set up a leaderboard in my game, and once I retrieve the leaderboard I can not figure out how to parse the returne

"Expected BEGIN_OBJECT but was STRING at line 1 column 1"

I have this method: public static Object parseStringToObject(String json) { String Object = json; Gson gson = new Gson(); Object objects = gson.fro

Nodejs concatenating numbers as a string

This function is triggered on button click nextPage() { this.tweets = [] this.$route.query.page += 1 this.getTweets() }, What it's doing is resetting arr

PHP: Parse date from localized format

I need to parse a date string in a multi-language application. Every user has their locale and then their date format. How to use: new DateTime($datestr); o

How to handle the variable size json file in python to create DataFrame using pandas

I am trying to build a DataFrame using pandas but I am not able to handle the case when I have the variable size of JSON chunks I am getting. eg: 1st chunk: {'a

Beautifulsoup scraping "lazy faded" images

I am looking for a way to parse the images on a web page. Many posts already exist on the subject, and I was inspired by many of them, in particular : How Can I

Unable to get mp4 tkhd info using go-mp4

Using package github.com/abema/go-mp4 when i try to run the example in the docs i get following error: invalid operation: box (variable of type *mp4.BoxInfo) is

Parsing Nested JSON leads to fromJson methods having a "The class 'Data' doesn't have an unnamed constructor." error

So I am trying to parse a Nested JSON from a GET request from VirusTotal but when I create the methods to parse the JSON for what I am looking for it is giving

Modify json field value in specified node using Java

For example I have Json like this { name: Alex, lastName: Smith, delivery: { street: 7599 King George Blvd, name : PIETER CIERE }, paymentAddressData: [

Can't parse excel date to string with xlsx in a util function javascript

I am trying to read an excel document which has a datetime column.Uploading it to the website,instead of date column i get those numbers which represent the tim

Grok pattern to remove "ms" from log string and convert to INT

first time long time. I have this log message: 2022/05/04 09:24:08 INTERESTING UpdateStatus: active: 45 waiting: 0 connections: 91 max dbcmd queue length: 3 max

Convert datetime column to UNIX epoch timestamp using SSIS

I have a column from a CSV that stores datetime. I need to be able to do some simple calculations on the seconds of that datetime field. I want to know how I ca