Need help scraping a website for information in a chart /u/Complex_Phrase7678 Python Education

Need help scraping a website for information in a chart /u/Complex_Phrase7678 Python Education

Hey guys,
I am a coding/computer science moron. I am trying to pull the historic pricing for different diamonds over the course of the last 5 years from a website. they have a great graph and I would like to scrape the data rather than manually enter it into a CSV.

How can I use chat GPT to help me write a script to pull the category, date, and price for my jupyter notebook? I am not sure which part of the website I should be using to prompt chat GPT.

Website: idexonline.com/diamond_prices_index

If this isn’t relevant to the sub, please let me know and I will delete.

Thank you!

submitted by /u/Complex_Phrase7678
[link] [comments]

​r/learnpython Hey guys, I am a coding/computer science moron. I am trying to pull the historic pricing for different diamonds over the course of the last 5 years from a website. they have a great graph and I would like to scrape the data rather than manually enter it into a CSV. How can I use chat GPT to help me write a script to pull the category, date, and price for my jupyter notebook? I am not sure which part of the website I should be using to prompt chat GPT. Website: idexonline.com/diamond_prices_index If this isn’t relevant to the sub, please let me know and I will delete. Thank you! submitted by /u/Complex_Phrase7678 [link] [comments] 

Hey guys,
I am a coding/computer science moron. I am trying to pull the historic pricing for different diamonds over the course of the last 5 years from a website. they have a great graph and I would like to scrape the data rather than manually enter it into a CSV.

How can I use chat GPT to help me write a script to pull the category, date, and price for my jupyter notebook? I am not sure which part of the website I should be using to prompt chat GPT.

Website: idexonline.com/diamond_prices_index

If this isn’t relevant to the sub, please let me know and I will delete.

Thank you!

submitted by /u/Complex_Phrase7678
[link] [comments]  Hey guys, I am a coding/computer science moron. I am trying to pull the historic pricing for different diamonds over the course of the last 5 years from a website. they have a great graph and I would like to scrape the data rather than manually enter it into a CSV. How can I use chat GPT to help me write a script to pull the category, date, and price for my jupyter notebook? I am not sure which part of the website I should be using to prompt chat GPT. Website: idexonline.com/diamond_prices_index If this isn’t relevant to the sub, please let me know and I will delete. Thank you! submitted by /u/Complex_Phrase7678 [link] [comments]

Read more

What should i do, please help /u/Jazzlike-Life2321 Python Education

What should i do, please help /u/Jazzlike-Life2321 Python Education

Hi i am only 12 and have a lot to learn so please anyone who could help i would really apreciate it. So my problem is I use vs code and i like having my parentheses and quotes close automatically but when I go to type anything in the parentheses and quote marks it just types over them.

for example:

print(“hello world”)

when I type that it automatically closes them but then i type inside and it comes out like this:

print(“hello world

if anyone could help me i would really apreciate it

ps: please dumb down the answers because i am not very smart and am still learning thank you.

submitted by /u/Jazzlike-Life2321
[link] [comments]

​r/learnpython Hi i am only 12 and have a lot to learn so please anyone who could help i would really apreciate it. So my problem is I use vs code and i like having my parentheses and quotes close automatically but when I go to type anything in the parentheses and quote marks it just types over them. for example: print(“hello world”) when I type that it automatically closes them but then i type inside and it comes out like this: print(“hello world if anyone could help me i would really apreciate it ps: please dumb down the answers because i am not very smart and am still learning thank you. submitted by /u/Jazzlike-Life2321 [link] [comments] 

Hi i am only 12 and have a lot to learn so please anyone who could help i would really apreciate it. So my problem is I use vs code and i like having my parentheses and quotes close automatically but when I go to type anything in the parentheses and quote marks it just types over them.

for example:

print(“hello world”)

when I type that it automatically closes them but then i type inside and it comes out like this:

print(“hello world

if anyone could help me i would really apreciate it

ps: please dumb down the answers because i am not very smart and am still learning thank you.

submitted by /u/Jazzlike-Life2321
[link] [comments]  Hi i am only 12 and have a lot to learn so please anyone who could help i would really apreciate it. So my problem is I use vs code and i like having my parentheses and quotes close automatically but when I go to type anything in the parentheses and quote marks it just types over them. for example: print(“hello world”) when I type that it automatically closes them but then i type inside and it comes out like this: print(“hello world if anyone could help me i would really apreciate it ps: please dumb down the answers because i am not very smart and am still learning thank you. submitted by /u/Jazzlike-Life2321 [link] [comments]

Read more

Progran to look through my files to check for errors /u/Charlezmantion Python Education

Progran to look through my files to check for errors /u/Charlezmantion Python Education

Hey all. I’m a super beginner and have been using chatgpt mostly to help code an AI chatbot program that I’m coding in python. I realized today that I’ve been a little overzealous with implementing different mechanics and am having an issues troubleshooting all the errors with chatgpt. Is there a program that could look through my main script and helper files to help identify conflicts and potential conflicts to help me with troubleshooting faster? I don’t really want to make a new file and implement the code incrementally. If not that I’ll probably have to continue on with bashing my head against a wall until it works haha. Thanks and merry christmas!

submitted by /u/Charlezmantion
[link] [comments]

​r/learnpython Hey all. I’m a super beginner and have been using chatgpt mostly to help code an AI chatbot program that I’m coding in python. I realized today that I’ve been a little overzealous with implementing different mechanics and am having an issues troubleshooting all the errors with chatgpt. Is there a program that could look through my main script and helper files to help identify conflicts and potential conflicts to help me with troubleshooting faster? I don’t really want to make a new file and implement the code incrementally. If not that I’ll probably have to continue on with bashing my head against a wall until it works haha. Thanks and merry christmas! submitted by /u/Charlezmantion [link] [comments] 

Hey all. I’m a super beginner and have been using chatgpt mostly to help code an AI chatbot program that I’m coding in python. I realized today that I’ve been a little overzealous with implementing different mechanics and am having an issues troubleshooting all the errors with chatgpt. Is there a program that could look through my main script and helper files to help identify conflicts and potential conflicts to help me with troubleshooting faster? I don’t really want to make a new file and implement the code incrementally. If not that I’ll probably have to continue on with bashing my head against a wall until it works haha. Thanks and merry christmas!

submitted by /u/Charlezmantion
[link] [comments]  Hey all. I’m a super beginner and have been using chatgpt mostly to help code an AI chatbot program that I’m coding in python. I realized today that I’ve been a little overzealous with implementing different mechanics and am having an issues troubleshooting all the errors with chatgpt. Is there a program that could look through my main script and helper files to help identify conflicts and potential conflicts to help me with troubleshooting faster? I don’t really want to make a new file and implement the code incrementally. If not that I’ll probably have to continue on with bashing my head against a wall until it works haha. Thanks and merry christmas! submitted by /u/Charlezmantion [link] [comments]

Read more

I NEED HELP!!! /u/p3dro_456 Python Education

I NEED HELP!!! /u/p3dro_456 Python Education

I’m a beginner in Python. I was in PyCharm (community), I imported the pygame module. What I tried to do was use the pygame.init, but it didn’t work. Using Ctrl+Space, instead appearing the commands like “.init, .mixer, .image, etc” the commands that appeared were:

.not .print .if .ifn (The only thing ALL these commands .par do is print something in the screen) .ifnn .main .return .while

I tried to get this module in PyPI and in the own PyCharm. Yes, it is in the latest version (2.6.1), I uninstalled, installed again, checked the GitHub, but I can’t solve this problem. Can anyone who has experienced this problem, or anyone who knows about Python, tell me how I can solve it?

OBS: Sorry if you don’t understand something, I don’t speak english

submitted by /u/p3dro_456
[link] [comments]

​r/learnpython I’m a beginner in Python. I was in PyCharm (community), I imported the pygame module. What I tried to do was use the pygame.init, but it didn’t work. Using Ctrl+Space, instead appearing the commands like “.init, .mixer, .image, etc” the commands that appeared were: .not .print .if .ifn (The only thing ALL these commands .par do is print something in the screen) .ifnn .main .return .while I tried to get this module in PyPI and in the own PyCharm. Yes, it is in the latest version (2.6.1), I uninstalled, installed again, checked the GitHub, but I can’t solve this problem. Can anyone who has experienced this problem, or anyone who knows about Python, tell me how I can solve it? OBS: Sorry if you don’t understand something, I don’t speak english submitted by /u/p3dro_456 [link] [comments] 

I’m a beginner in Python. I was in PyCharm (community), I imported the pygame module. What I tried to do was use the pygame.init, but it didn’t work. Using Ctrl+Space, instead appearing the commands like “.init, .mixer, .image, etc” the commands that appeared were:

.not .print .if .ifn (The only thing ALL these commands .par do is print something in the screen) .ifnn .main .return .while

I tried to get this module in PyPI and in the own PyCharm. Yes, it is in the latest version (2.6.1), I uninstalled, installed again, checked the GitHub, but I can’t solve this problem. Can anyone who has experienced this problem, or anyone who knows about Python, tell me how I can solve it?

OBS: Sorry if you don’t understand something, I don’t speak english

submitted by /u/p3dro_456
[link] [comments]  I’m a beginner in Python. I was in PyCharm (community), I imported the pygame module. What I tried to do was use the pygame.init, but it didn’t work. Using Ctrl+Space, instead appearing the commands like “.init, .mixer, .image, etc” the commands that appeared were: .not .print .if .ifn (The only thing ALL these commands .par do is print something in the screen) .ifnn .main .return .while I tried to get this module in PyPI and in the own PyCharm. Yes, it is in the latest version (2.6.1), I uninstalled, installed again, checked the GitHub, but I can’t solve this problem. Can anyone who has experienced this problem, or anyone who knows about Python, tell me how I can solve it? OBS: Sorry if you don’t understand something, I don’t speak english submitted by /u/p3dro_456 [link] [comments]

Read more

How to run a .exe daily? /u/Diasdasemana Python Education

How to run a .exe daily? /u/Diasdasemana Python Education

Hello, all! Recently I have forgotten to fill my clock in in my job, so that I came up with the idea of developing a automatic clock-in/clock-out system in Python which is not that hard. I could use the Task Scheduler, however, I do not want to donwload Pycharm or any IDE on my company’s device. The solution I have is to convert .py to a .exe, but how could I use Windows Task Scheduler with a .exe considering the code must have images to work?

submitted by /u/Diasdasemana
[link] [comments]

​r/learnpython Hello, all! Recently I have forgotten to fill my clock in in my job, so that I came up with the idea of developing a automatic clock-in/clock-out system in Python which is not that hard. I could use the Task Scheduler, however, I do not want to donwload Pycharm or any IDE on my company’s device. The solution I have is to convert .py to a .exe, but how could I use Windows Task Scheduler with a .exe considering the code must have images to work? submitted by /u/Diasdasemana [link] [comments] 

Hello, all! Recently I have forgotten to fill my clock in in my job, so that I came up with the idea of developing a automatic clock-in/clock-out system in Python which is not that hard. I could use the Task Scheduler, however, I do not want to donwload Pycharm or any IDE on my company’s device. The solution I have is to convert .py to a .exe, but how could I use Windows Task Scheduler with a .exe considering the code must have images to work?

submitted by /u/Diasdasemana
[link] [comments]  Hello, all! Recently I have forgotten to fill my clock in in my job, so that I came up with the idea of developing a automatic clock-in/clock-out system in Python which is not that hard. I could use the Task Scheduler, however, I do not want to donwload Pycharm or any IDE on my company’s device. The solution I have is to convert .py to a .exe, but how could I use Windows Task Scheduler with a .exe considering the code must have images to work? submitted by /u/Diasdasemana [link] [comments]

Read more

RidgeMap (Topographic) Elevation Map in Python? /u/eidrisov Python Education

RidgeMap (Topographic) Elevation Map in Python? /u/eidrisov Python Education

Hi everyone!

I am trying to create a 3D elevation map of countries/regions and I came across this Youtube tutorial that uses the RidgeMap package.

Unfortunately, it doesn’t work for me and I have a few questions. Note: full code is pasted below.

I use Python 3.12 in VSCode.

When I run the code, nothing happens. I only get a FutureWarning, but no errors, no map.

FutureWarning: `square` is deprecated since version 0.25 and will be removed in version 0.27. Use `skimage.morphology.footprint_rectangle` instead.

is_lake = rank.gradient(img_as_ubyte(values), square(3)) < lake_flatness

Questions.

  1. Any ideas why nothing is happening ? Why am I not seeing the map despite running the exact same code?

  2. Is it possible to save elevation maps created by RidgeMap as .obj or .stl files later to import into Fusion 360 ?

  3. Is it possible to have, let’s say, all terrain drawn in one colour and all water in another colour ?

Thanks in advance for any help.

from ridge_map import RidgeMap import matplotlib.pyplot as plt mt_shasta_bbox = (-122.5,41.25, -122.0,41.5) rm = RidgeMap(mt_shasta_bbox) values = rm.get_elevation_data(num_lines=150) values = rm.preprocess(values=values, lake_flatness=0.5, water_ntile=0, vertical_ratio=900) rm.plot_map(values=values, label="Test", label_x=0.55, label_y=0.1, label_size=40, linewidth=1, line_color=plt.get_cmap("copper"), kind="elevation") 

submitted by /u/eidrisov
[link] [comments]

​r/learnpython Hi everyone! I am trying to create a 3D elevation map of countries/regions and I came across this Youtube tutorial that uses the RidgeMap package. Unfortunately, it doesn’t work for me and I have a few questions. Note: full code is pasted below. I use Python 3.12 in VSCode. When I run the code, nothing happens. I only get a FutureWarning, but no errors, no map. FutureWarning: `square` is deprecated since version 0.25 and will be removed in version 0.27. Use `skimage.morphology.footprint_rectangle` instead. is_lake = rank.gradient(img_as_ubyte(values), square(3)) < lake_flatness Questions. Any ideas why nothing is happening ? Why am I not seeing the map despite running the exact same code? Is it possible to save elevation maps created by RidgeMap as .obj or .stl files later to import into Fusion 360 ? Is it possible to have, let’s say, all terrain drawn in one colour and all water in another colour ? Thanks in advance for any help. from ridge_map import RidgeMap import matplotlib.pyplot as plt mt_shasta_bbox = (-122.5,41.25, -122.0,41.5) rm = RidgeMap(mt_shasta_bbox) values = rm.get_elevation_data(num_lines=150) values = rm.preprocess(values=values, lake_flatness=0.5, water_ntile=0, vertical_ratio=900) rm.plot_map(values=values, label=”Test”, label_x=0.55, label_y=0.1, label_size=40, linewidth=1, line_color=plt.get_cmap(“copper”), kind=”elevation”) submitted by /u/eidrisov [link] [comments] 

Hi everyone!

I am trying to create a 3D elevation map of countries/regions and I came across this Youtube tutorial that uses the RidgeMap package.

Unfortunately, it doesn’t work for me and I have a few questions. Note: full code is pasted below.

I use Python 3.12 in VSCode.

When I run the code, nothing happens. I only get a FutureWarning, but no errors, no map.

FutureWarning: `square` is deprecated since version 0.25 and will be removed in version 0.27. Use `skimage.morphology.footprint_rectangle` instead.

is_lake = rank.gradient(img_as_ubyte(values), square(3)) < lake_flatness

Questions.

  1. Any ideas why nothing is happening ? Why am I not seeing the map despite running the exact same code?

  2. Is it possible to save elevation maps created by RidgeMap as .obj or .stl files later to import into Fusion 360 ?

  3. Is it possible to have, let’s say, all terrain drawn in one colour and all water in another colour ?

Thanks in advance for any help.

from ridge_map import RidgeMap import matplotlib.pyplot as plt mt_shasta_bbox = (-122.5,41.25, -122.0,41.5) rm = RidgeMap(mt_shasta_bbox) values = rm.get_elevation_data(num_lines=150) values = rm.preprocess(values=values, lake_flatness=0.5, water_ntile=0, vertical_ratio=900) rm.plot_map(values=values, label="Test", label_x=0.55, label_y=0.1, label_size=40, linewidth=1, line_color=plt.get_cmap("copper"), kind="elevation") 

submitted by /u/eidrisov
[link] [comments]  Hi everyone! I am trying to create a 3D elevation map of countries/regions and I came across this Youtube tutorial that uses the RidgeMap package. Unfortunately, it doesn’t work for me and I have a few questions. Note: full code is pasted below. I use Python 3.12 in VSCode. When I run the code, nothing happens. I only get a FutureWarning, but no errors, no map. FutureWarning: `square` is deprecated since version 0.25 and will be removed in version 0.27. Use `skimage.morphology.footprint_rectangle` instead. is_lake = rank.gradient(img_as_ubyte(values), square(3)) < lake_flatness Questions. Any ideas why nothing is happening ? Why am I not seeing the map despite running the exact same code? Is it possible to save elevation maps created by RidgeMap as .obj or .stl files later to import into Fusion 360 ? Is it possible to have, let’s say, all terrain drawn in one colour and all water in another colour ? Thanks in advance for any help. from ridge_map import RidgeMap import matplotlib.pyplot as plt mt_shasta_bbox = (-122.5,41.25, -122.0,41.5) rm = RidgeMap(mt_shasta_bbox) values = rm.get_elevation_data(num_lines=150) values = rm.preprocess(values=values, lake_flatness=0.5, water_ntile=0, vertical_ratio=900) rm.plot_map(values=values, label=”Test”, label_x=0.55, label_y=0.1, label_size=40, linewidth=1, line_color=plt.get_cmap(“copper”), kind=”elevation”) submitted by /u/eidrisov [link] [comments]

Read more

Music coding with Python? /u/Western_Basil_2803 Python Education

Music coding with Python? /u/Western_Basil_2803 Python Education

I’m currently doing a music related project that compares the user’s piano recording to another recording of the same song and gives a corresponding grade based on note accuracy and tempo. I’ve been trying to use libraries such as pydub and librosa but they haven’t been very user friendly to me at the moment. Is there something else I can be using to analyse an audio file within Python?

submitted by /u/Western_Basil_2803
[link] [comments]

​r/learnpython I’m currently doing a music related project that compares the user’s piano recording to another recording of the same song and gives a corresponding grade based on note accuracy and tempo. I’ve been trying to use libraries such as pydub and librosa but they haven’t been very user friendly to me at the moment. Is there something else I can be using to analyse an audio file within Python? submitted by /u/Western_Basil_2803 [link] [comments] 

I’m currently doing a music related project that compares the user’s piano recording to another recording of the same song and gives a corresponding grade based on note accuracy and tempo. I’ve been trying to use libraries such as pydub and librosa but they haven’t been very user friendly to me at the moment. Is there something else I can be using to analyse an audio file within Python?

submitted by /u/Western_Basil_2803
[link] [comments]  I’m currently doing a music related project that compares the user’s piano recording to another recording of the same song and gives a corresponding grade based on note accuracy and tempo. I’ve been trying to use libraries such as pydub and librosa but they haven’t been very user friendly to me at the moment. Is there something else I can be using to analyse an audio file within Python? submitted by /u/Western_Basil_2803 [link] [comments]

Read more