René's URL Explorer Experiment


Title: Why my python (Spyder) got stuck (i.e. did not return result) when I was trying to run the code of retrieving stock data from yahoo finance · Issue #1 · LastAncientOne/SimpleStockAnalysisPython · GitHub

Open Graph Title: Why my python (Spyder) got stuck (i.e. did not return result) when I was trying to run the code of retrieving stock data from yahoo finance · Issue #1 · LastAncientOne/SimpleStockAnalysisPython

X Title: Why my python (Spyder) got stuck (i.e. did not return result) when I was trying to run the code of retrieving stock data from yahoo finance · Issue #1 · LastAncientOne/SimpleStockAnalysisPython

Description: I have a list of US stocks ( around 3000 stocks) in excel and I want to get the stock price and other related daily stock info on each stock in certain time period. So I wrote a for loop to get all related stock info on each stock ( and ...

Open Graph Description: I have a list of US stocks ( around 3000 stocks) in excel and I want to get the stock price and other related daily stock info on each stock in certain time period. So I wrote a for loop to get all...

X Description: I have a list of US stocks ( around 3000 stocks) in excel and I want to get the stock price and other related daily stock info on each stock in certain time period. So I wrote a for loop to get all...

Opengraph URL: https://github.com/LastAncientOne/SimpleStockAnalysisPython/issues/1

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Why my python (Spyder) got stuck (i.e. did not return result) when I was trying to run the code of retrieving stock data from yahoo finance","articleBody":"I have a list of US stocks ( around 3000 stocks) in excel and I want to get the stock price and other related daily stock info on each stock in certain time period. So I wrote a for loop to get all related stock info on each stock ( and I have tried both yahoo_fin.stock_info and yfinance packages). But then it just got stuck at certain stock and never return the result. I am using spyder for my python coding. below is the code:\r\n```\r\nimport pandas as pd\r\nimport numpy as np\r\nimport yahoo_fin.stock_info as si\r\n\r\nticker_list = pd.read_excel(r'C:\\Users\\user\\Desktop\\ticker_list.xlsx',engine=\"openpyxl\")\r\n\r\nn=[]\r\net=[] \r\ndf_empty=[]\r\nfor i in range(len(ticker_list)): \r\n    try:\r\n        df = df_empty[0:0]\r\n        df=si.get_data(ticker_list.iloc[i]['ticker'], start_date='2021-09-30', end_date='2022-04-25') \r\n# I used yf.download for using yfinance package\r\n        mkt_cap=si.get_quote_table(ticker_list.iloc[i]['ticker'])[\"Market Cap\"]\r\n        df.insert (7,\"mkt_cap\",mkt_cap) \r\n        print(ticker_list.iloc[i]['ticker'])\r\n        df.replace(np.inf, np.nan)        \r\n        df = df.dropna()\r\n        df.reset_index(inplace=True)   \r\n        n.append(df)   \r\n    except:\r\n        et.append(ticker_list.iloc[i]['ticker'])\r\n        print('error: ' + ticker_list.iloc[i]['ticker'])\r\n        pass\r\nprint(n)\r\n```\r\nwhen I run the code below what it shows in my console:\r\n\r\n```\r\nPython 3.8.13 (default, Mar 28 2022, 06:59:08) [MSC v.1916 64 bit (AMD64)]\r\nType \"copyright\", \"credits\" or \"license\" for more information.\r\n\r\nIPython 7.31.1 -- An enhanced Interactive Python.\r\n\r\nrunfile('C:/Users/USER/get_all_stock_data.py', wdir='C:/Users/USER')\r\nBYDDY\r\nCHTR\r\nJD\r\nKYCCF\r\nRY-PT\r\nGE\r\nBP\r\nMO\r\nVLKPF\r\nSMAWF\r\nAMAT\r\n```\r\n\r\nI tired many times already , everytime it just stuck on different ticker everytime. Also I have also tried to leave the code running for a day but it just stop it right there and never give me return. when I tried to debug, it also stop running at either the si.get.data line or si.get_quote_table line. I actually use this code since last year and it work fine, it just start not working when I run this code again last week. I also tried several other packages ( e.g. pandas_datareader.data) still not able to get the stock info. Appreciate if anyone can let me know what is the problem.\r\n","author":{"url":"https://github.com/kk0186","@type":"Person","name":"kk0186"},"datePublished":"2022-04-29T09:49:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1/SimpleStockAnalysisPython/issues/1"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3671073d-7a71-317a-c1a9-9a18d6e5c926
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id957C:168F99:A14219:D0036A:699082A5
html-safe-nonce76ac4ef20bbba402ff88c55f856e1a7873fcec739ba0ff8682dadf50f4a5d99e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTdDOjE2OEY5OTpBMTQyMTk6RDAwMzZBOjY5OTA4MkE1IiwidmlzaXRvcl9pZCI6IjE2MjY0MDMwMzA0MTU5OTk2NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacba74763dee41292d65ac0cb6163d899d12a9e72199b4599b29dc0327bfd09f38
hovercard-subject-tagissue:1220385163
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/LastAncientOne/SimpleStockAnalysisPython/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e6add4b7592c1aede1fc53a687be16728ad71e88e779423869fe1c8dd44ff1b8/LastAncientOne/SimpleStockAnalysisPython/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e6add4b7592c1aede1fc53a687be16728ad71e88e779423869fe1c8dd44ff1b8/LastAncientOne/SimpleStockAnalysisPython/issues/1
og:image:altI have a list of US stocks ( around 3000 stocks) in excel and I want to get the stock price and other related daily stock info on each stock in certain time period. So I wrote a for loop to get all...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekk0186
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/LastAncientOne/SimpleStockAnalysisPython git https://github.com/LastAncientOne/SimpleStockAnalysisPython.git
octolytics-dimension-user_id4218171
octolytics-dimension-user_loginLastAncientOne
octolytics-dimension-repository_id126881529
octolytics-dimension-repository_nwoLastAncientOne/SimpleStockAnalysisPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id126881529
octolytics-dimension-repository_network_root_nwoLastAncientOne/SimpleStockAnalysisPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/issues/1#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FLastAncientOne%2FSimpleStockAnalysisPython%2Fissues%2F1
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FLastAncientOne%2FSimpleStockAnalysisPython%2Fissues%2F1
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=LastAncientOne%2FSimpleStockAnalysisPython
Reloadhttps://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/issues/1
Reloadhttps://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/issues/1
Reloadhttps://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/issues/1
LastAncientOne https://patch-diff.githubusercontent.com/LastAncientOne
SimpleStockAnalysisPythonhttps://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FLastAncientOne%2FSimpleStockAnalysisPython
Fork 133 https://patch-diff.githubusercontent.com/login?return_to=%2FLastAncientOne%2FSimpleStockAnalysisPython
Star 449 https://patch-diff.githubusercontent.com/login?return_to=%2FLastAncientOne%2FSimpleStockAnalysisPython
Code https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython
Issues 1 https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/issues
Pull requests 0 https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/pulls
Actions https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/actions
Projects 0 https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/projects
Security 0 https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/security
Insights https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/pulse
Code https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython
Issues https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/issues
Pull requests https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/pulls
Actions https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/actions
Projects https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/projects
Security https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/security
Insights https://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/LastAncientOne/SimpleStockAnalysisPython/issues/1
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/LastAncientOne/SimpleStockAnalysisPython/issues/1
Why my python (Spyder) got stuck (i.e. did not return result) when I was trying to run the code of retrieving stock data from yahoo financehttps://patch-diff.githubusercontent.com/LastAncientOne/SimpleStockAnalysisPython/issues/1#top
https://github.com/kk0186
https://github.com/kk0186
kk0186https://github.com/kk0186
on Apr 29, 2022https://github.com/LastAncientOne/SimpleStockAnalysisPython/issues/1#issue-1220385163
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.