Extracting specific data from webpage into text file - html

I have one webpage and I want to get some specific data to my text file. Is there any way to get data below? I am attaching screenshot of webpage from which I want to extract data.
ID No. Name Email Mobile Points Status Dates Times Point Edit Remove
7523 punam prasad punamprasad045#gmail.com 9300552777 1 ACTIVE 2018-02-27 11:08:11 Point Edit Delete
i.e if I want to extract mobile number into text file how could i fetch data.

Related

Use the Dates from a text file as options for a drop-down list

Im doing a simulation of prices and creating a page for it. The page will ask what year the user would like to simulate and the type of simulation to do (Monthly/weekly)
Based on the user's inputs, the page will open the text file that have filenames like this
2015_monthly.txt
2015_weekly.txt
2014_monthly.txt
2014_weekly.txt
Each file contains dates of when the simulation would end. For instance in 2015_monthly.txt
2015-01-30
2015-02-28
2015-03-31
.
.
.
What would i like to do is to ask the user to choose a date from the text file. I would like to do this in a dropdown list containing the dates from the file and use them as an options from a dropdown list. How can i translate this into a html code?

Unable to match csv column name using load records from file

I have created a new screen where I'm uploading Amazon orders from a CSV file. The original CSV file downloaded needs to have the first few lines removed to have the column headings at the top.
Before
After
I have a data field on the screen called date/time, but when I upload the CSV the mapping finds some sort of hidden characters in the file so the mapping doesn't automatically map the field.
I have tried changing the encoding while uploading the file, as well as changing the display name to include the ??? and double quotes like the image below, but the field doesn't auto-map.
Is there someway to get the field to auto-map on the file upload so the user doesn't have to map the field manually?
Thanks,
Kurt Bauer

Display text notes data from a database and modify them to save them again with NodeJs and MySql

I am writing a small website and I am at the last step, indeed my site allows a user to register then to connect, write text notes in a text area , save them in a database, this last step is : if I click on the button view my notes, I must have a page with a list of the saved notes, and if I click on a note in the list, the note appears in a text area , allowing me to modify it if I want and to save it again. I'm on nodejs and I looked for how to do this last step and I didn't find it. Ps : my table in the database have that form : textMemo|User .
you can use LONGTEXT datatype column. that can store 4GB data of characters.

Macro/VBA Code to Copy Data From Text File Into Table

I have a macro in place that imports and parses data from a text file already. I need it now to look for a range of data that is always the same in every text file. The file has a lot of text in it but somewhere in the middle of the file it has the data below. I need it to copy and paste this data into the tables from the word "acct123456789" until "the customer service team". I am using MS Access. Maybe i would like to have a search box, have the user enter the account number and have it copy from the account number until the "the customer service team?
I have 10 fields which are named "f1,f2,f3,f4,f5,f6,f7,f8,f9,f10" in table "statement-find"
example:
Search Box: USER INPUT (ex. 123456789)
- Information found in the table called "statement-find".
- Macro/VBA copies information from acct 123456789 to the customer service
team
- macro/vba pastes that range into a table called "statement"
Acct 123456789
Hello,
Thank you for your payment. Please view your receipt at www.test.com
Thank You,
The customer service team

NiFi : Regular Expression in ExtractText gets CSV header instead of data

I'm working on a flow where I get CSV files. I want to put the records into different directories based on the first field in the CSV record.
For ex, the CSV file would look like this
country,firstname,lastname,ssn,mob_num
US,xxxx,xxxxx,xxxxx,xxxx
UK,xxxx,xxxxx,xxxxx,xxxx
US,xxxx,xxxxx,xxxxx,xxxx
JP,xxxx,xxxxx,xxxxx,xxxx
JP,xxxx,xxxxx,xxxxx,xxxx
I want to get the field value of the first field i.e, country. Put those records into a particular directory. US records goes to US directory, UK records goes to UK directory, and so on.
The flow that I have right now is:
GetFile ----> SplitText(line split count = 1 & header line count = 1) ----> ExtractText (line = (.+)) ----> PutFile(Directory = \tmp\data\${line:getDelimitedField(1)}). I need the header file to be replicated across all the split files for a different purpose. So I need them.
The thing is, the incoming CSV file gets split into multiple flow files with the header successfully. However, the regex that I have given in ExtractText processor evaluates it against the splitted flow files' CSV header instead of the record. So instead of getting US or UK in the "line" attribute, I always get "country". So all the files go to \tmp\data\country. Help me how to resolve this.
I believe getDelimitedField will only work off a singular line and is likely not moving past the newline in your split file.
I would advocate for a slightly different approach in which you could alter your ExtractText to find the country code through a regular expression and avoid the need to include the contents of the file as an attribute.
Using a regex of ^.*\n+(\w+) will capture the first line and the first set of word characters up to the comma and place them in the attribute name you specify in capture group 1. (e.g. country.1).
I have created a template that should get the value you are looking for available at https://github.com/apiri/nifi-review-collateral/blob/master/stackoverflow/42022249/Extract_Country_From_Splits.xml