Dear Jakob,

The attached file is a python code that can manage (group) the questions
based on keywords.  Now I use one keyword named "speed", but we can define
more.
So we can make a webpage for each keyword and show the related Q/A there.

Can a code like this be helpful?
If you tell me which type of grouping and managing you desire, I can make a
related code.

Bests,
Reihaneh

On Thu, Jan 20, 2022 at 12:25 PM Jakob Erdmann <[email protected]>
wrote:

> There is no code for this and neither is there a list of ready-made
> keywords. My question on automation was purely out of curiosity.
> Your original proposal "I can re-organize the questions based on the topic
> from the very past up to now" seemed to imply a plan on how to tackle the
> problem.
>
> regards,
> Jakob
>
> Am Do., 20. Jan. 2022 um 09:26 Uhr schrieb reihaneh koohi <
> [email protected]>:
>
>> Dear Jakob,
>>
>> That would be nice. I use Python for coding. Is there any ready code to
>> use, or should I write it myself? Also, I need to know about keywords.
>>
>> I do not have a strong background in text analysis of Python, but as a
>> coder, I like to learn and do more.
>>
>> Bests,
>> Reihaneh
>>
>> On Wed, Jan 19, 2022 at 5:09 PM Jakob Erdmann <[email protected]>
>> wrote:
>>
>>> Hello,
>>> we try to put frequently asked questions into the FAQ (
>>> https://sumo.dlr.de/docs/FAQ.html) though we cannot force anyone to
>>> look there first (-:
>>> For the less frequently asked questions, my aim is to have them answered
>>> somewhere in the documentation so that they can be answered with a single
>>> link (and maybe show up in a search engine).
>>> All the previous questions and answers are archived at
>>> https://www.eclipse.org/lists/sumo-user/maillist.html and also show up
>>> in a google search.
>>>
>>> That being said, I'd be happy to get help on extending the FAQ and it
>>> might also be good to create an LFAQ page (less frequently asked questions).
>>> Do you intend to process the mailing list with automated methods /
>>> machine learning? I'd guess that the mailing list and it's predecessor (
>>> https://sourceforge.net/p/sumo/mailman/sumo-user)  have collected ~20k
>>> mails.
>>>
>>> regards,
>>> Jakob
>>>
>>>
>>> Am Mi., 19. Jan. 2022 um 14:00 Uhr schrieb reihaneh koohi <
>>> [email protected]>:
>>>
>>>> Dear Jakob,
>>>>
>>>> One can see some duplicated questions in this group due to the lack of
>>>> any platform containing all the previous questions.
>>>> If gathering and organizing the previous Q/A is helpful for the SUMO, I
>>>> will be more than happy to help. I can re-organize the questions based on
>>>> the topic from the very past up to now. Then, add these to the SUMO website
>>>> based on the topic of the question.
>>>>
>>>> Let me know if organizing the questions is helpful for SUMO,
>>>>
>>>> Bests,
>>>> Reihaneh
>>>> Postdoc of transportation engineering Department, IUT
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> sumo-user mailing list
>>>> [email protected]
>>>> To unsubscribe from this list, visit
>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep, strftime
from random import randint
import pandas as pd


webdriver= webdriver.Chrome(executable_path="/home/kouhi/kouhi-company/idea1/python-code/chromedriver")
       ### here you should use your own chromedriver address. first you have to download it
sleep(2)
keyword=['speed']


for i in range (2,25):
    webdriver.get('https://www.eclipse.org/lists/sumo-user/maillist.html')
    sleep(5)
    try:
        check='/html/body/main/div/div/table[2]/tbody/tr[%d]/td[2]/b/a' %(i)
        webdriver.find_element_by_xpath(check).click()
        sleep(5)
        mytext = webdriver.find_element_by_xpath('/html/body/main/div/div/div')
        string=mytext.text
        string=string.encode('ascii','ignore')
        print(string)
        for word in keyword:
            if word in string:
               print ("the hashtag is",word)
    except:
        print("not done",i)


_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to