Modifying nitter provider and improving created format parse for user.
This commit is contained in:
parent
6b70551210
commit
7b7fbceedc
@ -3,4 +3,4 @@ nitterProvider
|
|||||||
"For a full list of Nitter providers, see:
|
"For a full list of Nitter providers, see:
|
||||||
|
|
||||||
https://github.com/zedeus/nitter/wiki/Instances"
|
https://github.com/zedeus/nitter/wiki/Instances"
|
||||||
^ 'https://nitter.ca/'
|
^ 'https://nitter.net/'
|
@ -2,9 +2,9 @@ accessing
|
|||||||
createdAt
|
createdAt
|
||||||
^ createdAt ifNil: [| joinDateString |
|
^ createdAt ifNil: [| joinDateString |
|
||||||
joinDateString := ((self documentTree xpath: '//div[@class="profile-joindate"]/span/@title') stringValue).
|
joinDateString := ((self documentTree xpath: '//div[@class="profile-joindate"]/span/@title') stringValue).
|
||||||
joinDateString := joinDateString copyReplaceAll: '3 May' with: '03 May'.
|
"joinDateString := joinDateString copyReplaceAll: '3 May' with: '03 May'.
|
||||||
joinDateString := joinDateString copyReplaceAll: '5 May' with: '05 May'.
|
joinDateString := joinDateString copyReplaceAll: '5 May' with: '05 May'.
|
||||||
joinDateString := joinDateString copyReplaceAll: '2 Feb' with: '02 Feb'.
|
joinDateString := joinDateString copyReplaceAll: '2 Feb' with: '02 Feb'.
|
||||||
joinDateString := joinDateString copyReplaceAll: '6 Mar' with: '06 Mar'.
|
joinDateString := joinDateString copyReplaceAll: '6 Mar' with: '06 Mar'."
|
||||||
createdAt := (ZTimestampFormat fromString:'4:05 PM - 03 Feb 2001') parse: joinDateString.
|
createdAt := (ZTimestampFormat fromString:'4:05 PM - 3 Feb 2001') parse: joinDateString.
|
||||||
]
|
]
|
Loading…
Reference in New Issue
Block a user