I tried to scrape just-dial website using google sheet with some degree of success.
This is what i'm trying
=IMPORTXML("http://www.justdial.com/Gurgaon/Travel-Agents/ct-302", "//span[#class='jcn']/a")
It returns me just this
Ajay Travels
Shri Khatu Shyam Ji Tour An..
Maa Shitla Tour And Travels
Jbs Travel Solutions
K K Tours & Travels India P..
Shri Shyam Tour & Travels
Instant Corporate Solution
Sai Ram Tour and Travels
Ekam Holidays
Rest of the information like phone number ,location ,working hour are not returned. There are other ways of parsing using selenium but I haven't used much.
So is it possible to do using google sheet ? Any suggestion or help would be really appreciated.
Related
So I have a spreadsheet - https://docs.google.com/spreadsheets/d/16XLkjZafBSSdYZaSI9LLflOMvK40WgXsbrbE7Wqcwj8/edit?usp=sharing
Here is a basic sentence about football where I've written hottie 3 times.
"Hottie has taken the top spot in the Guardian's list of the world's top 100 footballers published today. See the full list and how it breaks down by nationality, club and position. An 11-strong international panel of hottie were asked by Guardian Sport to name their top 30 players in action today and rank them in order of preference. hottie were then scored on their ranking by each panellist: a No1 choice allocated 30pts, No2 29pts and so on down to selection No30, given one point."
Now, I have a list of 50 other players (Check the spreadsheet please)
How do I change the word hottie (all 3 times it's occuring) and replace it to the football player's name and do this for 50 of them automatically using this.
Please let me know, your response would be appreciated!!!
Thanks :)
Try :
=SUBSTITUTE(SUBSTITUTE(A2,"Hottie","hottie"),"hottie",B2)
Please share if it works/understandable/not.
So I am working on a Google Sheets project for a small business that I am going to be starting up. So I have Google sheet with 4 different sheets in it. Let me explain what each sheet is for:
1st sheet named "All Customers": This sheet will have a bunch of information about all the customers who are using our services (Name, Subject, Price, Location, Instructor).
The other 3 sheets are for the 3 instructors who would handle all the customers. The 3 instructors are Sam, Lucy, and Jason, and their Sheets are named Sam's Customers, Lucy's Customers, and Jason's Customers respectively.
I want a sorting system where I can put in the info of the customer in the "All customers" sheet and based on the instructor I assign to them, that customer's info gets sorted and appended into the assigned instructor's Sheet. SO here's an example:
Jordan who wants to learn math needs to pay $200 for tutoring by us. He is located in NY so I assign him to our instructor Lucy who resides in NY and can tutor him.
In this case, this is what the "All Customer" sheet would contain:
A B C D E
1 Name Subject Price Location Instructor
2 Jordan Math $200 NY Lucy
Now Based on the fact that Lucy was assigned as the instructor for Jordan, I want his select information to be added to the "Lucy's Customers" Sheet Like so:
A B C
1 Name Price Location
2Jordan $200 NY
That's what I'm trying to achieve. If Jordan was assigned Sam, the select information of Jordan would be added to the "Sam's Customer" sheet.
So I'd been at this for a while and based on my research I wasn't able to get anywhere. I was messing around with the following Formula: =IF(INDIRECT("All Customers!C1:C")="Lucy",INDIRECT("All Customers!A2:A")," ")
But I know this won't achieve what I'm doing.
Here is a link to the dummy spreadsheet for this project so anyone can mess around with it:
https://docs.google.com/spreadsheets/d/1TGS9thgt77DSLbOUC5V2tRyjrDqE9He5ET17bM7HhZU/edit?usp=sharing
The Query method works but it only mirrors the information. I have pre-made cells in the instructors' sheets where there are cells that record if the customers under that specific instructor has paid or not monthly. The query is basically mirroring the information instead of copy/pasting. So when I get rid of a customer or switch the instructor in the main record, it will disappear from under the respective instructor's sheet. If that's the case then the corresponding cells that record the monthly payments in the instructor's sheet will be messed up.
Any help would be appreciated. Thank You in advance!
I have introduced the queries in the sheet. Please have a look. The data can be retrieved using QUERY function of Google Sheets. example is given below
=QUERY('All Customers'!A:E,"SELECT A,C,D WHERE E CONTAINS 'Sam'",0).
Now, whenever you make new rows in "All Customers" sheet, data would automatically be updated in instructor sheet.
Hope it is clear.
I am using Google Sheets for fetching EOD prices of Indian stocks, using the function
=GOOGLEFINANCE("IOC","price")
Google is returning 19.51 but the closing price for IOC on 11-11-2019 is INR 135.40.
price shows real-time of a particular stock. To get closing price use close.
Use complete ticker symbol from Google Finance. "NSE:IOC" for Indian Oil.
For example:
=GOOGLEFINANCE("NSE:IOC","close",DATE(2019,11,11))
For more information you can visit the documentation.
See this image as a working example:
I found a workaround:
=ROUND(IF(MIN(GOOGLEFINANCE(A1,"marketcap")/GOOGLEFINANCE(A1,"shares"),GOOGLEFINANCE(A1,"price"))=0,GOOGLEFINANCE(A1,"marketcap")/GOOGLEFINANCE(A1,"shares"),MIN(GOOGLEFINANCE(A1,"marketcap")/GOOGLEFINANCE(A1,"shares"),GOOGLEFINANCE(A1,"price"))),3)
Haven't fully tested it yet but works so far.
First of All Google Finance function is not designed to be used for only Indian Markets hence this problem is occuring. When you search for the live prices of IOC (Indian Oil Corporation as is yours case) its showing the prices of a scrip named IOC (Itochu Corp a Japanese Company listed on Frankfurt Stock exchange)Price of IOC as FRA stock
So to Get the Price of Indian Oil Corporation you have to use the script name as NSE:IOC instead of just IOC
I'm pretty new to using Excel/Google Sheets as I've never needed it in previous jobs. This query isn't for a work project but for a personal record to keep information I want to record clear and concise, Kind of like keeping books for a business I am trying to record various income's and outgoing's in the form of "points" (Maybe Google Sheets isn't the best "free" tool to use) that will show how many "points" someone has accrued, How they earned them, and What if any they have spent them on, It will also be recording some cash transaction as well.
I have 2 sheets currently and I am trying to add all the data for a single person from 1 Sheet into the "Points Total" column on the other sheet taking into account what they have earned and what they have spent.
I'm not sure how else to explain it really, Here is my current butchered (seriously) formulae:
=sum(C2:F2), - 'Point Purchases'!C2
Link to the Google Sheet in question
You are mot that far off. Just remove the comma.
=sum(C2:F2) - 'Point Purchases'!C2
I want to get data of some selected stock of finance yahoo API. I am listing these API here .
Chart
http://finance.yahoo.com/echarts?s=AAPL+Interactive#
Key statistics
http://finance.yahoo.com/q/ks?s=AAPL+Key+Statistics
Competitors
http://finance.yahoo.com/q/co?s=AAPL+Competitors
Analyst Opinion
http://finance.yahoo.com/q/ao?s=AAPL+Analyst+Opinion
Analyst Estimates
http://finance.yahoo.com/q/ae?s=AAPL+Analyst+Estimates
Major Holders
http://finance.yahoo.com/q/mh?s=AAPL+Major+Holders
Income Statement (annual and Quarterly)
http://finance.yahoo.com/q/is?s=AAPL
Balance Sheet (annual and Quarterly)
http://finance.yahoo.com/q/bs?s=AAPL+Balance+Sheet&annual
Cash Flow (annual and Quarterly)
http://finance.yahoo.com/q/cf?s=AAPL+Cash+Flow&annual
Is there any api which give me exact solution for this.Even it is paid.Please Provide me correct and sufficient information also thanks in advance.
You can get most of what you're looking for using the yahoo_fin package in Python. Its documentation is here: http://theautomatic.net/yahoo_fin-documentation/.
Here's some examples:
Pulling analyst info (e.g. https://finance.yahoo.com/quote/AAPL/analysts?p=AAPL):
from yahoo_fin.stock_info import *
get_analysts_info("AAPL")
Income statment:
get_income_statement("AAPL")
Cash flow statment:
get_cash_flow("AAPL")
Balance sheet:
get_balance_sheet("AAPL")
Key statistics (e.g. https://finance.yahoo.com/quote/AAPL/key-statistics?p=AAPL):
get_stats("AAPL")
Major holders (e.g. https://finance.yahoo.com/quote/AAPL/holders?p=AAPL):
get_holders("AAPL")
You just need to replace "AAPL" with whatever ticker you want data for.