[SOLVED] Cannot set properties of undefined javascript

Issue I’m having trouble fetching from an API from javascript, and I’m getting the error "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘ytData’)" Here is the code: const url = `https://www.googleapis.com/youtube/v3/channels?key=${youtubeKeys.key}&part=statistics&id=${youtubeKeys.id}` class Homepage extends React.Component { constructor()

Continue reading

[SOLVED] How to get data from a api using element of another api in reactjs

Issue Api1 = [{"user_id":1,"name":"Tim Keyson"},{"user_id":2,"name":"Augustus Kopfer"},{"user_id":3,"name":"Charyl Jopling"},{"user_id":4,"name":"Amos Rawll"},{"user_id":5,"name":"Maure Kopfen"},{"user_id":6,"name":"Alleen Colbourne"},{"user_id":7,"name":"Jada Nicholson"},{"user_id":8,"name":"Boycey Salzburg"},{"user_id":9,"name":"Nerta Jeschner"},{"user_id":10,"name":"Oran Spinozzi"},{"user_id":11,"name":"Alwin MacIntyre"},{"user_id":12,"name":"Alvan Wilkinson"},{"user_id":13,"name":"Querida Duckerin"},{"user_id":14,"name":"Gibb Fockes"},{"user_id":15,"name":"Rochell Doolan"},{"user_id":16,"name":"Artemas Cathrae"},{"user_id":17,"name":"Smith Gentery"},{"user_id":18,"name":"Esmaria Candlish"},{"user_id":19,"name":"Rice Kytter"},{"user_id":20,"name":"Brietta Haysham"}] Api2 = [{"product_id":1,"name":"Cookie – Oatmeal","stock":92,"selling_price":141},{"product_id":2,"name":"Beer – Original Organic Lager","stock":88,"selling_price":27},{"product_id":3,"name":"Sobe – Orange Carrot","stock":85,"selling_price":176},{"product_id":4,"name":"Pepper – Chillies, Crushed","stock":99,"selling_price":70},{"product_id":5,"name":"Wine –

Continue reading

[SOLVED] Loop through webpages via BeautifulSoup and download all images

Issue I would like to go through the below web pages and save the respective images using python: Examples (total of 10.000 websites): https://cryptopunks.app/cryptopunks/cryptopunk0001.png https://cryptopunks.app/cryptopunks/cryptopunk0002.png https://cryptopunks.app/cryptopunks/cryptopunk0002.png https://cryptopunks.app/cryptopunks/cryptopunk9999.png My goal is to use the images in a GAN afterward for project

Continue reading