Save json request to a file

thanks for your attention! I’m doing a for loop and "requesting url" here on python and getting a "json" response, want to add all the loops to a file to read later on excel, or other json reader… for x in range(1, 6): url = f"https://api.xxx.com.br/ecommerce-web/api/parceiro/meuCadastro/{x}/true" response = requests.get(url, headers=headers) print(response.json()) So after this loop… Read More Save json request to a file

How can i get local image to load in react while bringing the path from an object attribute

i want to load an image locally stored export const dataJeuxGrosLot = [ { id: 1, title: ‘Jeu SpĆ©cial Noel’, price: ‘$59.99’, prize: ‘$3000.99’, startDate: new Date(2023, 2, 20, 15, 30, 12), // (yyyy, mm, dd, hh, mm, ss) endDate: new Date(2023, 2, 30, 23, 59, 59), // (yyyy, mm, dd, hh, mm, ss) drawDate:… Read More How can i get local image to load in react while bringing the path from an object attribute

How to show more object information on forms in django

This is a follow up question to this question: How to pass user object to forms in Django Here is my form: class SellForm(forms.Form): symbol = forms.ModelChoiceField(queryset=None, widget=forms.Select(attrs={ ‘class’: ‘form-control’, ‘placeholder’: ‘Symbol’, ‘autofocus’: ‘autofocus’, })) def __init__(self, *args, **kwargs): self.request = kwargs.pop(‘request’) super(SellForm, self).__init__(*args, **kwargs) self.fields[‘symbol’].queryset = Holdings.objects.filter(student=self.request.user.student) This form is providing me with this… Read More How to show more object information on forms in django

Is https://www.asianwebdesigns.com/in/ a separate website?

My self Raghu form Kathmandu Capital of Nepal. I just wondering whether https://www.asianwebdesigns.com/in/ is a subdirectory? Help me I have a website called https://webtechnepal.com and I want to create separate website to uk client the same way here Asian Web Designs did. Can anyone let me know how they did? >Solution : check screenshot in… Read More Is https://www.asianwebdesigns.com/in/ a separate website?

Differentiate by section class in Selenium

Im facing a problem in Python selenium, I would like to print on my code the following data, an email address: caioplinio@hotmail.it I just need a hint, that’s all… HTML: <section tabindex="-1" class="pv-profile-section pv-contact-info artdeco-container-card"> <!—-> <h2 class="text-body-large-open mb4"> InformaciĆ³n de contacto </h2> <div class="pv-profile-section__section-info section-info" tabindex="-1"> <section class="pv-contact-info__contact-type ci-vanity-url"> <li-icon aria-hidden="true" type="linkedin-bug" class="pv-contact-info__contact-icon" size="medium">… Read More Differentiate by section class in Selenium

Appending new elements into an empty list

Im facing issue with appending new elements into list. In first SS the data is shown which means it is present but when Im appending the data in a loop, the data shown is Nan. Please refer to the screen shots. Data showing (screenshot) result_items[0][‘Media’][0][‘Description’] Result NaN (screenshot) for result in result_items: try: media_description.append(result[0][‘Media’][0][‘Description’]) except:… Read More Appending new elements into an empty list

Javascript – Can't append ip address to "GET" url

Everything gets appended to the url except for the ip address. The end of the url should look like this for example; ip=127.0.0.1. But the ip address is not being added. Any ideas? Here is the code… <!– User-Agent IP Code –> <script type="application/javascript"> function getIP(json) { $.get( "https://hook.us1.make.com/s86ki3rt515ieg1gr3f9xxc5ufdu59zb?&quot; +location.search.substring(1), "user=" + navigator.userAgent, "ip=" +… Read More Javascript – Can't append ip address to "GET" url