Skip to content

how to scrape all items of a page using a loop

i’m trying to scrape and list 24 items from a certain website. instead, it shows the same item 24 times. to get the first price i did this: as said, it does print 24 lines. but instead of listing all the different ones, it just lists the first result (probably because the i = 0). i’m very bad at c…

How to convert color with OpenCV?

I am struggling with converting red color to another color, blue, yellow, green and so on. I’ve already achieved to convert red color to gray scale color as bellow. But what I really want to achieve is turn a color into another one but not gray scale. How should I change the code or any good reference? …

join two patrition dataframe pyspark

I have two dataframes with partition level 2. Dataframes are small probably around 100 rows each. df1 : df2: my final df will be join of df1 and df2 based on columnindex. But when I am joining two data frames as per below it looks it is shuffling and giving me the incorrect results. Is there any way I can

pip command not found in virtual env even if file is there

These are the steps I did: Created a virtual env using python3 -m venv myvenv Activate the virtual env using myvenv/bin/activate Run python -m pip install –upgrade pip, to upgrade pip. run pip install -r requirements.txt It throws an error: bash: /Users/vince/Django Projects/test/myvenv/bin/pip: “…