Category : request

Python error when using request get Hello guys i have this in my code from bs4 import BeautifulSoup r = requests.get(url) And I’m gettin this <Response [403]> Whats could be the solution The url is ‘https://www3.animeflv.net/anime/sailor-moon’ btw the title is weird because i dont know why stack overflow dont allow me the way i want ..

Read more

Is there a way i can use python to find a .json file thats located in Inspect Element as follows: *Sources -> Top -> example.com -> embed -> media ->* **filename.json?callback=domainjson1** I need to get the json file using python and cant seem to find any help… jsonfile = "https://example.com/embed/medias/filename.json" with request.urlopen(jsonfile) as response: source ..

Read more

How to return URL of first searched result of booking? EX: I use this code to search for hotels: import requests from bs4 import BeautifulSoup url = "https://www.booking.com/searchresults.en-gb.html?3Btop_ufis%3D1%26%3B&ss=" HotelName = ‘tolipalexandria’ url2 = ‘&is_ski_area=0&checkin_year=2021&checkin_month=6&checkin_monthday=1&checkout_year=2021&checkout_month=6&checkout_monthday=2&group_adults=2&group_children=0&no_rooms=1&sb_changed_dates=1&from_sf=1’ fullUrl = url + HotelName + url2 print(fullUrl) r = requests.get(fullUrl) soup = BeautifulSoup(r.text, "lxml") answ = soup.find("div", {"id":"wider_image"}).text print(answ) Any ..

Read more

I wrote a crypto price API request script. I’m using coingecko for my request and this wrapper for python: https://github.com/man-c/pycoingecko The script: def coingecko(): cg = CoinGeckoAPI() return cg.get_price(ids=[‘moontoken’, ‘safemoon’,’refinable’], vs_currencies=’usd’) def add_new_price(): fields = [‘Date’,’moontoken’, ‘safemoon’,’refinable’] data = coingecko() print(data) rows = [] now = datetime.now() dt_string = now.strftime("%d-%m-%Y %H:%M") rows.append(dt_string) #print(dt_string,cg.ping(),data) for i ..

Read more

hey actually I’m tryin to create spotify account using python script so i requested using post method url: https://spclient.wg.spotify.com/signup/public/v1/account data: creation_point=lite_7e7cf598605d47caba394c628e2735a2&password_repeat=JEpazBLdZJeNcP&platform=Android-ARM&iagree=true&password=JEpazBLdZJeNcP&gender=female&key=a1e486e2729f46d6bb368d6b2bcda326&birth_day=23&birth_month=9&[email protected]&birth_year=1972′ just some random stuff to create account getting this result with tor proxy: {‘status’: 120, ‘country’: ‘ZZ’, ‘dmca-radio’: False, ‘shuffle-restricted’: False, ‘username’: ”, ‘can_accept_licenses_in_one_step’: True, ‘requires_marketing_opt_in’: False, ‘requires_marketing_opt_in_text’: False, ‘minimum_age’: 13, ‘country_group’: ‘NA’, ‘specific_licenses’: ..

Read more

hey actually I’m trying to create Spotify account using python script so I requested using the post method url: https://spclient.wg.spotify.com/signup/public/v1/account data: creation_point=lite_7e7cf598605d47caba394c628e2735a2&password_repeat=JEpazBLdZJeNcP&platform=Android-ARM&iagree=true&password=JEpazBLdZJeNcP&gender=female&key=a1e486e2729f46d6bb368d6b2bcda326&birth_day=23&birth_month=9&[email protected]&birth_year=1972′ just some random stuff to create an account getting this result with tor proxy: {‘status’: 120, ‘country’: ‘ZZ’, ‘dmca-radio’: False, ‘shuffle-restricted’: False, ‘username’: ”, ‘can_accept_licenses_in_one_step’: True, ‘requires_marketing_opt_in’: False, ‘requires_marketing_opt_in_text’: False, ‘minimum_age’: 13, ‘country_group’: ..

Read more