-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
54 lines (36 loc) · 1.08 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 26 22:49:13 2023
@author: HP
"""
import requests
from bs4 import BeautifulSoup
from datetime import date
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from interaction import SpotifyGenerator
from class_fichier import C_Fichier
def main():
sp = SpotifyGenerator()
file = C_Fichier("data.txt")
sp.get_driver()
sp.get_Email_from_yopmail()
#sp.go_to_signup()
sp.fill_email_and_confrm()
sp.remove_descrections()
sp.fill_password()
sp.fill_displayed_name()
sp.fill_date_of_birth()
sp.fill_gender()
sp.submit_form()
sp.cc_premium_activator()
L = sp.export_data()
L.append(date.today())
#file.creer_fichier_1()
file.Liste_to_str_to_Fichier(L)
return
main()