Comments (9)
Please kindly check new video below.
I have added more parameters to define Price Code in your Country.
https://youtu.be/aIZFELGtfWY?t=146
Just additional other information:
I'm guessing you're a data practitioner, you can use to_pd()
to export into DataFrame.
Thank you :)
from senginta.py.
= RESTART: C:\Users\Spsyco\Downloads\glowing-pulse-form\Senginta.py-main\Senginta.py-main\senginta\tests.py
title 40
price 0
e-commerce 40
src-link 40
img-link 40
Traceback (most recent call last):
File "C:\Users\Spsyco\Downloads\glowing-pulse-form\Senginta.py-main\Senginta.py-main\senginta\tests.py", line 25, in
print(GoogleShops.to_json())
File "C:\Users\Spsyco\Downloads\glowing-pulse-form\Senginta.py-main\Senginta.py-main\senginta\static\search.py", line 108, in to_json
result = self.to_pd().to_json(orient='index')
File "C:\Users\Spsyco\Downloads\glowing-pulse-form\Senginta.py-main\Senginta.py-main\senginta\static\search.py", line 93, in to_pd
self.dataframe = pd.DataFrame(self.get_all())
File "C:\Users\Spsyco\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\frame.py", line 614, in init
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
File "C:\Users\Spsyco\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\internals\construction.py", line 464, in dict_to_mgr
return arrays_to_mgr(
File "C:\Users\Spsyco\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\internals\construction.py", line 119, in arrays_to_mgr
index = _extract_index(arrays)
File "C:\Users\Spsyco\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\internals\construction.py", line 635, in _extract_index
raise ValueError("All arrays must be of the same length")
ValueError: All arrays must be of the same length
Seems like error so i tried with the get_all() and to_pd() as well but in the ouput same issue found the price key not added values prices missing
title 40
price 0
e-commerce 40
src-link 40
img-link 40
above is the output for to_pd and get_all() kindly check not able to scrap the price of the product
from senginta.py.
['Tv Remote', 'Tv TV TV Remote', 'TV', '₹199.00', 'Remote', 'TV Remote', '₹348.00', 'Remote', 'Tv', 'Remote', 'Remote', '₹110.00', 'Remote', 'TV', '₹449.00', 'TV Remote', 'TV', 'Remote', '₹230.00', 'Tv', 'Remote', 'Tv', 'Remote', 'Tv', 'TV', '₹209.00', 'TV', 'Remote', '₹280.00', 'Remote', 'Remote', 'REMOTE', 'Remote', '₹209.00', 'remote', 'Remotes', 'TV', '₹270.00', 'Remote', 'TV', 'TV', 'tv', '₹249.00', 'Tv Remote', 'Tv TV TV Remote', 'tv', '₹349.00', 'Remotes', 'Remote', 'Remote', 'Remotes', 'REMOTE', 'Remote', '₹209.00', 'Tv Remote', 'TV TV Remote', '₹209.00', 'Remote', 'Remote', '₹209.00', 'Tv', 'Remote', 'Remote', 'TV', 'Remote', 'Remote', '₹209.00', 'Tv', 'Remote', '₹199.00', 'Remote', '₹155.00', 'Tv', 'Remote', '₹249.00', 'Remote', 'Remote', 'REMOTE', '₹209.00', 'Remote', 'Tv', 'TV', '₹189.00', 'Tv', 'Remote', 'Tv', 'Remote', '₹258.00', 'Tv Remote', 'Tv', 'TV TV Remote', 'TV', '₹349.00', 'TV Remote', '₹249.00', 'Remote', 'TV', 'Remote', '₹209.00', 'Remote', 'Remote', '₹399.00', 'Tv', 'Remote', 'Remote', '₹227.00', 'Remote', 'Remote', 'Remote', '₹209.00', 'Tv Remote', 'TV TV Remote', '₹209.00', 'Remote', 'TV', 'Remote', 'TV', 'Remote', '₹301.00', 'Remote', 'TV', 'Remote', '₹249.00', 'Remote', 'Remote', 'Remote', 'TV', 'Remote', '₹209.00', 'Remote', 'Remote', 'TV', '₹299.00', 'Remote', 'TV', 'Remote', '₹379.00', 'TV', 'Remote', 'TV', '₹299.00', 'Remote', 'TV', 'TV', '₹339.00', 'Remote', 'Remote', 'TV', 'Remote', '₹399.00', 'Remote', 'TV', '₹215.00', 'Remote', 'Remote', 'TV', 'Remote', '₹219.00', 'Tv Remote', 'Tv TV TV Remote', 'TV', '₹239.00', 'TV', 'Remote', 'TV', '₹289.00', 'Remote', 'Remote', 'TV', 'Remote', 'Tv', 'Tv', 'Tv Remote', 'Remote', 'Tv', 'Remote Remote', 'Tv', 'Remote', 'Remote', 'Remote', 'Tv', 'Remote', 'Remote', 'Tv', 'Remote', 'Tv', 'Remote', 'Tv', 'Remote', 'Remote', 'Tv', 'Remote', 'Tv', 'Remote', 'Tv', 'Remote', 'Tv', 'Remote', 'TV Remote', 'Tv', 'Remote', 'Tv', 'Remote', 'Tv Remote', 'Tv', 'Remote', 'Tv', 'Remote', 'TV', 'Remote', 'Remote', 'TV', 'Remote', 'tv', 'Tv', 'Remote', 'Tv', 'Remote', 'Tv Remote', 'Tv TV TV Remote', 'TV', 'Remote', 'Tv', 'Tv', 'Remote', 'Tv', 'Remote', 'TV Remote', 'Remote', 'Tv Remote', 'Remote', 'TV', 'Remote', 'Tv Remote', 'Remote', 'Remote', 'Remote', 'Remote', 'Remote', 'Tv', 'TV Remote', 'Remote', 'TV Remote', 'Remote', 'tv', 'Remote', 'Remote', 'Remote', 'TV', 'Tv', 'Remote', 'Tv', 'Remote', 'Remote', 'Remote', 'Remote', 'Remote', 'Remote', 'TV Remote', 'Remote', 'REMOTE', 'Remote', 'TV Remote', 'Tv Remote', 'Remote', 'TV', 'Remote', 'TV Remote', 'TV', 'Tv Remote', 'Remote', 'TV', 'Remote', 'Remote', 'Remote', 'TV', 'Remote', 'TV', 'Remote', 'Remote', 'Tv Remote', 'Remote', 'Remote', 'Remote', 'Remote', 'TV Remotes', 'Remote', 'TV Remote', 'Remote', 'TV Remote', 'Remote', 'Remote', 'Remote', 'Remote', 'TV', 'Remote', 'Tv Remote', 'Remote', 'Remote', 'Remote', 'Tv', 'Remote', 'Remote', 'Remote', 'tv', 'Remote', 'Remote', 'Remote', 'TV']
Output for B tag while calling get_price() so that prices is coming but seems like other unnecessary tags data also coming
from senginta.py.
Have you tried out this code?
GShop('Remove TV', '₹', 1, 2)
from senginta.py.
Traceback (most recent call last):
File "C:\Users\Spsyco\Downloads\glowing-pulse-form\ftest-main\ftest-main\testr.py", line 3, in
print(GoogleShops.get_all('Remove TV', '₹', 1, 2))
TypeError: get_all() takes 1 positional argument but 5 were given
May be Price is not able to scrap from webpage, can you try once in your system please
get_main(), get_price tags getting lots of unnecessary data with price
from senginta.py.
Haha, sorry. I mean GShop('Remove TV', '₹', 1, 2)
.
from senginta.py.
Hey Michael, It is working thanks
what was my fault is i have not replaced the right currency symbol while calling Gshop
GoogleShops = GShop('Remote TV', '₹', 1, 3)
print(GoogleShops.to_pd())
the above is right for india and it is working fine thanks Michael again and this will help me in my collage final year project
from senginta.py.
Thank's. It's my old project, I'm sorry I don't really remember what is defined on the code. So, I'm sorry for not becoming a good Repository Owner :(.
Nice to see somebody who using this for Final Year Project. Can you tell me through this issue if the project have been built?
from senginta.py.
yeah sure, when it will be completed, I'll remind you don't worry
from senginta.py.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from senginta.py.