Lengkap

Small Project: python script to scrape 1 webpage and extract data from txt file using regular expression/pattern matching

Small Project: python script to scrape 1 webpage and extract data from txt file using regular expression/pattern matching

Please dont get carried away by the length of the text here, I have given an elaborated version of my requirement, so that there is no confusion or mismatch in expectations, this is exactly what I need your help with.

1 Write a python script to scrape data from 1 webpage store that data in CSV file

Detailed manual steps to be automated.

Goto [login to view URL]

Filter for “FO Stocks”

Sort by “Value (in lakhs)” column (descending order)

Pick first 5 names listed in “Symbol” column save them in CSV file

Expected output CSV file as

Date,StockName

2018-07-24,TECHM

2018-07-24,DRREDDY

2. Write a python script to extract data from txt file using regular expression / pattern matching

Input txt (Pattern 1)

---------------[START]

Recommendations for the day:

BUY DRREDDY at 1994.0

SL: 21.0 Tgt: 63.0 Qty: 9

SELL TECHM at 712.6

SL: 9.1 Tgt: 27.3 Qty: 24

----------------------------[END]

Input txt (pattern 2)

---------------[START]

INTRDAY CASH SELL

DALMIABHARAT

CMP-2326-2320

SL 2345

TARGET- 2310-2290-2270-2250

----------------------------[END]

Expected Output CSV file

Date,StockName,OrderType,TransactionType,Quantity,EntryPrice,TriggerPrice,StopLoss,Target

2018-07-24,DRREDDY,BO,BUY,4,1994,1994,21,63

2018-07-24,DALMIABHARAT,BO,SELL,,2320,2320,15,10

formula for Pattern 1

Quantity = (rounddown(Qty/2,0))

Formula for pattern 2

EntryPrice= second value in CMP line

Stoploss=EntryPrice - value in SL line

Target=EntryPrice - First value in TARGET line

System Environment

OS - Ubuntu 16.04.4 LTS

Python 2.7.12

Kemahiran: Linux, Python, Ubuntu, Pengikisan Web

Lihat lagi: regular expression parser text file, extract data html pages regular expression, convert csv file txt file using, python, program file txt, save data entry submit form using asp, getting data local user profile using, file txt editor web, data transfer mobile application using vbnet, find data web page regular expressions, insert data using file csv sysutil, email address file txt, excel macro read file txt, expression engine upload file field contact form, extract data html page regular expression

Tentang Majikan:
( 4 ulasan ) Hyderabad, India

ID Projek: #17419228

Dianugerahkan kepada:

AHMEDAMER232

I have 5 years of experience in web scraping. I've scraped around 1,200 websites like yelp, angellist, walmart, ebay, amazon, realestate, glassdoor, zillow, yellowpages, ... I prefer to making my own python scrip Lagi

₹1300 INR dalam sehari
(0 Ulasan)
0.0

5 pekerja bebas membida secara purata ₹1400 untuk pekerjaan ini

neernab

Hi, we are a team of java and python developers who ensure on time task completion with complete customer [login to view URL] find our portfolio below [login to view URL]

₹1800 INR dalam 5 hari
(17 Ulasan)
3.7
sky930320

Dear Sir. I have full experience in web scraping using python and C++. I'm using phantom, selenium, Beautiful Soup (python) and libcurl(C++) Please give me this job to prove my expertise. My expertise skills: Lagi

₹1300 INR dalam sehari
(4 Ulasan)
3.3
mido0258

Hi I am young developer from Prague, who has 8 years of experience. I am able to make your pythn scrapper, But I'd suggest using bash script. Please pm me so I can start [login to view URL] you for the reply

₹1300 INR dalam 10 hari
(6 Ulasan)
2.6
₹1300 INR dalam sehari
(0 Ulasan)
0.0