Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: How I could do that in the best way?
Post: RE: How I could do that in the best way?
(Dec-06-2022, 03:35 PM)DeaD_EyE Wrote: This is just checking how many parts the path has. The first part is always /.
from pathlib import Path
from urllib.parse import urlparse
def how_many(url):
... |
|
Kalet |
General Coding Help |
5 |
1,040 |
Dec-06-2022, 04:58 PM |
|
|
Thread: How I could do that in the best way?
Post: RE: How I could do that in the best way?
(Dec-06-2022, 09:22 AM)Pedroski55 Wrote: If you get this:
Quote:http://{ }/something/{ }/{ }/{ }/{ }
Do you always know what goes in the { }?
If not, how will you decide?
Yes, maximum it should ... |
|
Kalet |
General Coding Help |
5 |
1,040 |
Dec-06-2022, 12:54 PM |
|
|
Thread: How I could do that in the best way?
Post: How I could do that in the best way?
Hi, I would like to know if there is a way to validate the '{}' when I receive them in a function. For example, I receive a URL and I have two parameters and I can perfectly do the .format. However, w... |
|
Kalet |
General Coding Help |
5 |
1,040 |
Dec-06-2022, 07:00 AM |
|
|
Thread: Problem with nested JSON
Post: RE: Problem with nested JSON
(Dec-09-2021, 08:31 PM)Gribouillis Wrote: It is still unclear, for example "Cold" appears only once in the original data and three times in the expected data. How can the program generate the two mi... |
|
Kalet |
General Coding Help |
7 |
2,804 |
Dec-09-2021, 10:21 PM |
|
|
Thread: Problem with nested JSON
Post: RE: Problem with nested JSON
(Dec-09-2021, 01:03 PM)Gribouillis Wrote: Kalet Wrote:If for example appears:
"mode":"Spring",
It should be like that:
"Spring",The result that you want is not clear because when you have "mode": "... |
|
Kalet |
General Coding Help |
7 |
2,804 |
Dec-09-2021, 01:45 PM |
|
|
Thread: Problem with nested JSON
Post: RE: Problem with nested JSON
(Dec-09-2021, 07:40 AM)Gribouillis Wrote: It doesn't look like valid json data. Can you post data that can be loaded with json.loads() and the python code that you tried to update the data?
Hi,
I a... |
|
Kalet |
General Coding Help |
7 |
2,804 |
Dec-09-2021, 12:33 PM |
|
|
Thread: Problem with nested JSON
Post: Problem with nested JSON
Hi,
I'm trying all the day and yesterday for two things:
1) I want to modify a lot of values from a JSON object in Python with the following structure:
{
"Moderators":{
...
"something"{...
},
"tempe... |
|
Kalet |
General Coding Help |
7 |
2,804 |
Dec-09-2021, 03:04 AM |
|
|
Thread: How to perform a successful login(signin) through Requests in Python
Post: How to perform a successful login(signin) through ...
|
Kalet |
Web Scraping & Web Development |
1 |
2,354 |
Apr-23-2020, 05:19 PM |
|
|
Thread: How to background another process in Python?
Post: How to background another process in Python?
The thing is, I'm trying to get a process inside my script and have me call it whenever I want. For example, I'm filling in some data and I enter the word "background". In this way, it is called a pro... |
|
Kalet |
General Coding Help |
2 |
2,508 |
Oct-20-2019, 05:15 PM |
|
|
Thread: Selenium - How to position yourself in a new tab
Post: Selenium - How to position yourself in a new tab
Hello,
I have been working with Selenium as I mentioned here an admin and it is amazing. Only that I have a doubt, when I am in a tab and there is a link which displays a new window by itself, I do n... |
|
Kalet |
Web Scraping & Web Development |
1 |
2,986 |
Sep-27-2017, 11:45 PM |
|
|
Thread: I need request POST for Facebook in My Profile
Post: RE: I need request POST for Facebook in My Profile
(Sep-27-2017, 05:41 PM)Kalet Wrote: (Sep-27-2017, 05:30 PM)metulburr Wrote: use selenium to click the button. Here is a script that logs into facebook with selenium and goes to friends list. You c... |
|
Kalet |
Web Scraping & Web Development |
4 |
4,332 |
Sep-27-2017, 05:53 PM |
|
|
Thread: I need request POST for Facebook in My Profile
Post: RE: I need request POST for Facebook in My Profile
(Sep-27-2017, 05:30 PM)metulburr Wrote: use selenium to click the button. Here is a script that logs into facebook with selenium and goes to friends list. You can switch it to click the button you w... |
|
Kalet |
Web Scraping & Web Development |
4 |
4,332 |
Sep-27-2017, 05:41 PM |
|
|
Thread: I need request POST for Facebook in My Profile
Post: I need request POST for Facebook in My Profile
I will try to be as specific as possible. I am trying to make a request by POST method to publish a certain link in my profile. I've used the Facebook API, but it's not what I need. I need to do this:... |
|
Kalet |
Web Scraping & Web Development |
4 |
4,332 |
Sep-27-2017, 04:58 PM |
|
|
Thread: Get pagination Instagram
Post: Get pagination Instagram
Hello, I'm trying to automate my script(in Python) to automatically get the end_cursor in succession. For example:
https://www.instagram.com/explore/tags/plebiscito/?__a=1after:
https://www.instagra... |
|
Kalet |
General Coding Help |
0 |
5,975 |
Dec-14-2016, 12:21 AM |
|
|
Thread: Instagram pagination tags
Post: Instagram pagination tags
Hello,
I am doing a development based on instagram, I do not use the API because they do not allow applications in development mode but in production mode.
So, I'm trying to get the following pages... |
|
Kalet |
General Coding Help |
1 |
5,005 |
Dec-12-2016, 06:53 PM |
|
|
Thread: ReGex With Python
Post: RE: ReGex With Python
(Oct-22-2016, 05:58 PM)snippsat Wrote: Look at the source there is a list,as posted use [0] to get in.
['nodes'][0]['text']
Snippsat, i want to thank you very much for your help. Can I collaborate w... |
|
Kalet |
Web Scraping & Web Development |
33 |
27,537 |
Oct-23-2016, 10:21 PM |
|
|
Thread: ReGex With Python
Post: RE: ReGex With Python
(Oct-22-2016, 05:58 PM)snippsat Wrote: Look at the source there is a list,as posted use [0] to get in.
['nodes'][0]['text']
Oh, i will try this:
try:
while count <= len(data['entry_da... |
|
Kalet |
Web Scraping & Web Development |
33 |
27,537 |
Oct-22-2016, 06:36 PM |
|
|
Thread: ReGex With Python
Post: RE: ReGex With Python
(Oct-22-2016, 04:46 PM)snippsat Wrote: import requests
import re
import json
url = "https://www.instagram.com/p/BLExlG_gs9M/"
url_get = requests.get(url)
sorurce = url_get.text
data_json = re.finda... |
|
Kalet |
Web Scraping & Web Development |
33 |
27,537 |
Oct-22-2016, 05:39 PM |
|
|
Thread: ReGex With Python
Post: RE: ReGex With Python
(Oct-22-2016, 01:46 AM)snippsat Wrote: Quote:You're the one who created this forum?.
We where some people on the old forum who decided for this forum.
metulburr created this forum and did run it bef... |
|
Kalet |
Web Scraping & Web Development |
33 |
27,537 |
Oct-22-2016, 04:18 PM |
|
|
Thread: ReGex With Python
Post: RE: ReGex With Python
(Oct-22-2016, 01:46 AM)snippsat Wrote: Quote:You're the one who created this forum?.
We where some people on the old forum who decided for this forum.
metulburr created this forum and did run it bef... |
|
Kalet |
Web Scraping & Web Development |
33 |
27,537 |
Oct-22-2016, 03:13 AM |